Used a specific compiler version pragma solidity 0.8.0
which has overflow checks and SafeMath built in.
hasFunds
- validates user's account balance has sufficient funds for withdraw amount
isHodler
- validates a user has held a deposit in the bank for a specified length of time before rewarding with Galleon ERC20 tokens
nonReentrant functions
- deposit
- withdraw (wei)
- transfer ERC20 tokens to user