Closed code423n4 closed 3 years ago
Sherlock
Causes some internal miscalculations allowing people to take out locked funds using timeUnlockERC20() and delegatedTransferERC20()
https://github.com/Evert0x/2021-05-visorfinance/blob/main/contracts/test/Test.ts#L12
Hardhat
Calculate balance using balance.add( _lockData.balance) on line 207 of Visor.sol
sponsor disputed The highest balance here is the total balance
I don’t get why highest balance is total balance but will give benefit of the doubt to the sponsor.
Handle
Sherlock
Vulnerability details
Impact
Causes some internal miscalculations allowing people to take out locked funds using timeUnlockERC20() and delegatedTransferERC20()
Proof of Concept
https://github.com/Evert0x/2021-05-visorfinance/blob/main/contracts/test/Test.ts#L12
Tools Used
Hardhat
Recommended Mitigation Steps
Calculate balance using balance.add( _lockData.balance) on line 207 of Visor.sol