| constructor(address corporateTreasury_, address[4] memory managers, bool isEnabledWhitelist, bool[2] memory enableLimits, uint256[2] memory defaultLimits, string memory name, string memory symbol, uint8 decimals_) #public |
|---|
| In constructor next important parameters are set: |
0) |
| Except the values of important variables setting, will be executed next actions:| name() #public #view |
|---|
| Returns the name of the token. |
| symbol() #public #view |
|---|
| Returns the symbol of the token, usually a shorter version of the name. |
| decimals() #public #view |
|---|
| Returns the decimals places of the token. |
| totalSupply() #public #view |
|---|
| Returns the amount of tokens in existence. |
| balanceOf(address account) #public #view |
|---|
Returns the amount of tokens owned by account. |
| transfer(address _to, uint256 _amount) #public |
|---|
| Moves ‘_amount’ of tokens from the caller's account to ‘_to’ address. |
| Emits a {Transfer} event. Function blocked when contract is paused. Function has a number of checks and conditions - see {_transfer} internal function. |
| transferBundle(address[] memory _bundleTo, uint256[] memory _bundleAmounts) #public |
|---|
Moves ‘_amount’ of tokens from the array of amounts _bundleAmounts from the caller's account to each address from array of addresses _bundleTo. |
| Emits a {Transfer} event for each transfer of this multi-sending function. |
| Function blocked when contract is paused. |
| Function has a number of checks and conditions - see {_transfer} internal function. |
| Address => value transferred according to indexes of arrays: |
| to [0]indexed address will be sent [0]indexed amount of tokens, |
| to [1]indexed address will be sent [1]indexed amount of tokens and so on |
| allowance(address owner, address spender) #public #view |
|---|
Returns the remaining number of tokens that _spender will be allowed to spend on behalf of _owner through {transferFrom}. This is zero by default. |
| This value changes when {approve} or {transferFrom} are called. |
| approve(address spender, uint256 amount) #public |
|---|
Sets _amount as the allowance of _spender over the caller's tokens. |
| Returns a boolean value indicating whether the operation succeeded. |
| IMPORTANT: Beware that changing an allowance with this method brings the risk |
| that someone may use both the old and the new allowance by unfortunate |
| transaction ordering. One possible solution to mitigate this race |
| condition is to first reduce the spender's allowance to 0 and set the |
| desired value afterwards. |
Function blocked when contract is paused. Emits an {Approval} event. Function has a number of checks and conditions - see {_approve} internal function. |
| transferFrom(address from, address to, uint256 amount) #public |
|---|
Moves _amount of tokens from _from to _to using the allowance mechanism. |
_amount is then deducted from the caller's allowance. |
| Returns a boolean value indicating whether the operation succeeded. |
| Function blocked when contract is paused. |
| Emits a {Transfer} event. |
| Function has a number of checks and conditions - see: {_transfer} & {_spendAllowance} internal function. |
| increaseAllowance(address _spender, uint256 _addedValue #public |
|---|
| Increases the allowance granted to ‘_spender’ by the caller. |
| This is an alternative to {approve} that can be used as a mitigation for problems described in {approve}. |
| Function blocked when contract is paused. |
| Emits an {Approval} event indicating the updated allowance. |
| Function has a number of checks and conditions - see {_approve} internal function. |
| Requirements: |
| ’spender’ cannot be the zero address. |
| decreaseAllowance(address _spender, uint256 _subtractedValue) #public |
|---|
| Decreases the allowance granted to ‘_spender’ by the caller. |
| This is an alternative to {approve} that can be used as a mitigation for problems described in {approve}. |
| Function blocked when contract is paused. |
| Emits an {Approval} event indicating the updated allowance. |
| Function has a number of checks and conditions - see {_approve} internal function. |
| Requirements: |
| ‘_spender’ cannot be the zero address. |
| ‘_spender’ must have allowance for the caller of at least ‘subtractedValue’. |
| _transfer(address _from, address _to, uint256 _amount) #internal |
|---|
Moves _amount of tokens from _from to _to. |
| Emits a {Transfer} event |
| Requirements: |
_from cannot be the zero address and has to be whitelisted_to cannot be the zero address and has to be whitelisted._from must have a balance of at least _amount.
Function checks limits, balance of _from address => see {_beforeTokenTransfer}
Function updates DataOfLockedTokens for _from address => see {_afterTokenTransfer} || _mint(address _account, uint256 _amount) #internal |
|---|
Creates _amount tokens and assigns them to _account, increasing the total supply. |
Emits a {Transfer} event with from set to the zero address. |
| Requirements: |
_account cannot be the zero address and has to be whitelisted. |
| _burn(address _account, uint256 _amount) #internal |
|---|
Destroys _amount tokens from account, reducing the total supply. |
/// Emits a {Transfer} event with to set to the zero address. |
| /// Requirements: |
/// * account cannot be the zero address. |
/// * account must have at least _amount tokens. |
| _approve(address _owner, address _spender, uint256 _amount) #internal |
|---|
Sets _amount as the allowance of _spender over the _owner s tokens. |
This internal function is equivalent to approve, and can be used to e.g. set automatic allowances for certain subsystems, etc. |
| Emits an {Approval} event. |
| Requirements: |
*_owner cannot be the zero address and has to be whitelisted. |
*_spender cannot be the zero address and has to be whitelisted. |
| _spendAllowance(address _owner, address _spender, uint256 _amount) #internal |
|---|
Updates _owner s allowance for _spender based on spent _amount. |
| Does not update the allowance amount in case of infinite allowance. |
| Revert if not enough allowance is available. |
| Might emit an {Approval} event. |
| _beforeTokenTransfer(address _from, uint256 _amount) #internal |
|---|
| This hook is called before any transfer of tokens(except minting & burning). |
Increases the {PersonalInfo.outputAmount} of _from account by _amount |
Increases the counter of transactions of _from account by 1 ({PersonalInfo.transactionCount}) |
| Requirements: |
*Avaliable Transaction Count Limit of _from has to be > 0 |
*{_avaliableLimit} of _from account cannot be less then _amount to transfer |
*{_avaliableBalance} of _from account cannot be less then _amount to transfer |