Function _registerCollateralToken()
create wtoken based on token decimals:
But if token decimals update (like usdc), it will lead to chaotic for people who deposit token to protocol before and after, because wtoken is minted based on token deposit:
For example:
User A deposit 10 usdc (10 . 10^6 token), receive back 10 . 10^6 wtoken
after upgrade, decimals is 8, user B deposit 10 usdc ( 10 . 10^8) token, receive back 10. 10^8 wtoken
Handle cases when token is upgradable.
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.