cyclofinance / cyclofinance/cyclo.sol
Pull cyToken `name` from on-chain instead of canonical JSON
- Dominant language
- Solidity
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Each entry in `cyclo.sol/canonical/cyclo-site-tokens.json` carries the vault's `name` as a hardcoded string. The vault is an ERC20 with a `name()` accessor — read it via `readContract` keyed by `(chainId, vaultAddress)`, cache, and drop the `name` field from the canonical JSON. The internal display order/labels in the UI stay the same; only the source of the string changes.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with cyclo.sol/canonical/cyclo-site-tokens.json and the UI code that consumes its entries, then trace the existing readContract usage for the (chainId, vaultAddress) key. The work is done when each vault name comes from the cached on-chain name() result, the canonical entries no longer contain name, and the UI's existing order and labels remain unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- solidity
- Domain
- blockchain
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100