QA Report #95
Labels
bug
Something isn't working
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
1. Incompatability with deflationary / fee-on-transfer tokens
Cally.createVault
function takes atokenIdOrAmount
parameter but this parameter is not the actual transferred amount for fee-on-transfer / deflationary (or other rebasing) tokens in casetokenType = ERC20
Impact
exercise
orwithdraw
they not only receive less than expected amount but also take funds of other vaults with the samevault.token
too, causes loss of funds.Proof-of-concept
Recommended Mitigation Steps
2. Vault id will start from 3 not from 1.
Cally.createVault()
function,vaultIndex += 2
is done before assigning it tovaultId
. SovaultId
will start from 3 andoptionId
will start from 4. There will not havetokenId = 0
ortokenId = 1
Proof of concept
Recommended Mitigation Steps
vaultIndex
tovaultId
before add 2.The text was updated successfully, but these errors were encountered: