Skip to content

IZtakingPool ​

Git Source

Functions ​

depositFor ​

Stake a specified amount of a particular supported token into the Ztaking Pool

solidity
function depositFor(address _token, address _for, uint256 _amount) external;

Parameters

NameTypeDescription
_tokenaddressThe token to deposit/stake in the Ztaking Pool
_foraddressThe user to deposit/stake on behalf of
_amountuint256The amount of token to deposit/stake into the Ztaking Pool

withdraw ​

Withdraw a specified amount of a particular supported token previously staked into the Ztaking Pool

solidity
function withdraw(address _token, uint256 _amount) external;

Parameters

NameTypeDescription
_tokenaddressThe token to withdraw from the Ztaking Pool
_amountuint256The amount of token to withdraw from the Ztaking Pool

balance ​

solidity
function balance(address token_, address staker_) external view returns (uint256);