In StabilityBranch#fulfillSwap()
function, it use Chainlink's Data Stream to verify price:
From scope, these tokens are supported:
But there are 2 problems at here:
SUSDE and WEETH token do not exist in data stream, lead to unable to verify price of these tokens. WBTC do not have also, but we should not assume WBTC = BTC, because WBTC has depegged down to 0.98 before
Assuming all price returned have 18 decimals:
Despite with some tokens in scope that already have data stream feeds, its deciamls is 18 already, but with token mentioned above, its price can be 8 decimals when data stream's feed created because price decimals could be 8 or 18 link:
Some token in scope could not be used to fulfill swap, and its price can have wrong decimals if its data stream is created later
Currently,dont interact with token that do not have data stream feeds, and do not assume its price is always 18 decimals.
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.