whitelistedTokens
whitelistedTokens are only allowed to be added at creation time, which makes the protocol unhealthy.
If the creator forgets to add some important tokens, or some kind of popular stable token appears in the market, but the contract does not support these tokens, this will affect the popularity and influence of the protocol
https://github.com/Cyfrin/2023-08-sparkn/blob/main/src/ProxyFactory.sol#L81
If the creator forgets to add some important tokens, or some kind of popular stable token appears in the market, but the contract does not support these tokens, this will affect the popularity and influence of the protocol
manual
We can add addwhitelistedTokens()
and deletewhitelistedTokens()
function and set it being onlyOwner
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.