ProtocolERC20UMin.sol
ProtocolERC20UMin
Inherits: Initializable, ERC20Upgradeable, ProtocolTokenCommonU, ReentrancyGuard
Author: @ShaneDuncan602, @oscarsernarosero, @TJ-Everett, @Palmerg4
This is the base contract for all protocol ERC721Upgradeable Minimals.
State Variables
handlerAddress
handler
__gap
memory placeholders to allow variable addition without affecting client upgradeability
Functions
__ProtocolERC20_init
Initializer sets the the App Manager
Parameters
Name | Type | Description |
---|---|---|
_appManagerAddress | address | Address of App Manager |
__ProtocolERC20_init_unchained
_beforeTokenTransfer
Function called before any token transfers to confirm transfer is within rules of the protocol
Parameters
Name | Type | Description |
---|---|---|
from | address | sender address |
to | address | recipient address |
amount | uint256 | number of tokens to be transferred |
getHandlerAddress
Rule Processor Module Check
This function returns the handler address
Returns
Name | Type | Description |
---|---|---|
<none> | address | handlerAddress |
connectHandlerToToken
Function to connect Token to previously deployed Handler contract
Parameters
Name | Type | Description |
---|---|---|
_deployedHandlerAddress | address | address of the currently deployed Handler Address |