Anyone can call the function depositCollateral
, if the user sends a token that is not mapped on the oracle, the user will deposit a collateral that has no value for the protocol, depending on how is the state of his balance, he maybe is not even capable of redeeming it.
None, usability
In depositCollateral
function verify if the tokenCollateralAddress
is in the s_collateralTokens
array, if not, revert the transaction with a new error
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.