ILPToken

Git Source

Inherits: IERC20

Author: Nuts Finance Developer

Interface for LP Token

Functions

addPool

Add a pool to the list of pools

function addPool(address _pool) external;

removePool

Remove a pool from the list of pools

function removePool(address _pool) external;

increaseAllowance

Increase the allowance of the spender

function increaseAllowance(address _spender, uint256 _addedValue) external returns (bool);

decreaseAllowance

Decrease the allowance of the spender

function decreaseAllowance(address _spender, uint256 _subtractedValue) external returns (bool);

addTotalSupply

Add the amount to the total supply

function addTotalSupply(uint256 _amount) external;

removeTotalSupply

Remove the amount from the total supply

function removeTotalSupply(uint256 _amount, bool isBuffer, bool withDebt) external;

transferShares

Transfer the shares to the recipient

function transferShares(address _recipient, uint256 _sharesAmount) external returns (uint256);

transferSharesFrom

Transfer the shares from the sender to the recipient

function transferSharesFrom(address _sender, address _recipient, uint256 _sharesAmount) external returns (uint256);

mintShares

Mint the shares to the account

function mintShares(address _account, uint256 _sharesAmount) external;

burnShares

Burn the shares from the account

function burnShares(uint256 _sharesAmount) external;

burnSharesFrom

Burn the shares from the account

function burnSharesFrom(address _account, uint256 _sharesAmount) external;

addBuffer

function addBuffer(uint256 _amount) external;

name

Name of the token

function name() external view returns (string memory);

symbol

Symbol of the token

function symbol() external view returns (string memory);

totalShares

Get the total amount of shares

function totalShares() external view returns (uint256);

totalRewards

Get the total amount of rewards

function totalRewards() external view returns (uint256);

sharesOf

Get the total shares of the account

function sharesOf(address _account) external view returns (uint256);

getSharesByPeggedToken

Get the shares corresponding to the amount of pooled eth

function getSharesByPeggedToken(uint256 _ethAmount) external view returns (uint256);

getPeggedTokenByShares

Add the amount of Eth corresponding to the shares

function getPeggedTokenByShares(uint256 _sharesAmount) external view returns (uint256);