40,000 USDC
View results
Submission Details
Severity: medium
Valid

L1 : Add mechanisms to handle dividends from erc20 token

L1 : add mechanism to handle dividends from erc20 token

Vulnerability Details

Some ERC20 can give dividends to holders. When the dividends will be given to the smart contract, there will be lost without an additionnal function to handle them.

Impact

Loss of funds sent to the Escrow Contract by ERC20 Token

Tools Used

None

Recommendations

Add two function with onlyAbiter modifier:
One to handle Eth dividend
One to handle ERC20 Dividend ( with a check that the ERC20 is different from the ERC20 token given as parameter in the constructor)

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.