ERC20Guard
Functions:
Events:
Function txGuard(address _poolManagerLogic, address, bytes data) → uint16 txType
txGuard(address _poolManagerLogic, address, bytes data) → uint16 txType
Transaction guard for approving assets
Parameters:
_poolManagerLogic
: Pool addressdata
: Transaction call data attempt by manager
Return Values:
txType transaction type described in PoolLogic
Function withdrawProcessing(address pool, address asset, uint256 portion, address) → address withdrawAsset, uint256 withdrawBalance, struct IAssetGuard.MultiTransaction[] transactions
withdrawProcessing(address pool, address asset, uint256 portion, address) → address withdrawAsset, uint256 withdrawBalance, struct IAssetGuard.MultiTransaction[] transactions
Creates transaction data for withdrawing tokens
Return Values:
withdrawAsset and
withdrawBalance are used to withdraw portion of asset balance to investor
transactions is used to execute the withdrawal transaction in PoolLogic
Function getBalance(address pool, address asset) → uint256 balance
getBalance(address pool, address asset) → uint256 balance
Returns the balance of the managed asset
Return Values:
balance The asset balance of given pool
Function getDecimals(address asset) → uint256 decimals
getDecimals(address asset) → uint256 decimals
Returns the decimal of the managed asset
Parameters:
asset
: Address of the managed asset
Return Values:
decimals The decimal of given asset
Function removeAssetCheck(address pool, address asset)
removeAssetCheck(address pool, address asset)
Necessary check for remove asset
Parameters:
pool
: Address of the poolasset
: Address of the remove asset
Last updated