smart_contract
smart_contract copied to clipboard
ECR223 test cases
With the added ECR223 compatibility we need test cases for the following:
- Use approve and depositToken to deposit an ECR223 token into the FD contract. Expected: Updated user token balance
- Use Token.transfer to deposit an ECR223 token into the FD contract. Expected: Updated user token balance.
- Use approve and depositToken to deposit an ECR223 token that fails to implement approve/transferFrom into the FD contract. Expected: Sender does not lose funds
- Use Token.transfer to deposit an ECR223 token that fails to implement approve/transferFrom into the FD contract. Expected: Updated user token balance.