As an owner:
- Deploy token contract
- Deploy lending contract
- Make lending contract the owner of the token contract
- Set token using
setToken()
- Withdraw eth fees with
withdrawFeeContractEth()
- Calculate overdraft fees with
calculateOverdraft()
- Withdraw overdraft fees with
withdrawOverdraftContractEth()
Note: mint some tokens to your account before transfering ownership for testing overdraft fee withdraw since it requires the owner to burn tokens.
As a user:
- Send eth using
borrowTokens()
to get tokens for a duration - Return tokens with
returnTokens()
- Withdraw remaining eth with
withdrawEth()