Platform: Code4rena
Start Date: 07/09/2022
Pot Size: $20,000 CANTO
Total HM: 7
Participants: 65
Period: 1 day
Judge: 0xean
Total Solo HM: 3
Id: 159
League: ETH
Rank: 11/65
Findings: 1
Award: $210.46
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: Chom
Also found by: 0xSmartContract, Jeiwan, SinceJuly, V_B, cccz, linmiaomiao
In the getUnderlyingPrice function, the price of some ctokens is determined based on their symbols rather than their addresses. This means that when there are tokens with the same symbol as cCANTO, cNOTE, cUSDT, cUSDC, they will have the same price. And if the token symbols of cCANTO, cNOTE, cUSDT, cUSDC are updated (like adding version numbers), getUnderlyingPrice will no longer work.
None
Consider storing the addresses of these tokens and determining the price based on the addresses.
#0 - nivasan1
2022-09-10T17:20:54Z
duplicate #24