HodlerERC20.sol
hodlTokens are non transferable, they can only be minted and burned.
Below the overview of all state changing functions in the smart contract, these are internal functions that can only be called by Hodler.sol.
State changing functions overview
_mint is called by Hodler.sol on deposit of assets. It adds the value of deposit to the balance of the msg.sender and the total supply.
_burn is called by Hodler.sol on withdraw of assets when the game has not started. It removes the value from the balance of the msg.sender and the total supply.
_burnCurve is called by Hodler.sol on withdraw of assets when the game has started. It removes the value from the balance of the msg.sender and adds it to total withdrawn.
Last updated
Was this helpful?