LenderPool
deposit
function deposit(uint amount) external;
Is used by lenders to deposit stable tokens to the smart contracts.
amount
uint
is used by lenders to deposit stable token to smart contract.
Requirements
amount
should be greater than zero. must be approved from the stable token contract for the LenderPool. should be less than the validation limit or KYC needs to be completed.
withdrawAllDeposit
function withdrawAllDeposit() external;
Send lender T-Stable equivalent to stable deposited.
withdrawDeposit
function withdrawDeposit(uint amount) external;
Send lender T-Stable equivalent to stable requested.
amount
uint
Total token requested by lender.
Requirements
amount
should be greater than 0. should be not greater than deposited.
redeemAll
Call transfers all rewards and deposited amount in the stable token.
function redeemAll() external;
Requirements
RedeemPool
should have stable tokens more than lender deposited.
switchRewardManager
Is used to switch reward managers.
function switchRewardManager(address newRewardManager) external;
newRewardManager
address
newRewardManager, Address of the new RewardManager
.
switchVerification
Updates the Verification contract address.
function switchVerification(address newVerification) external;
switchVerification
address
Updates the Verification contract address.
switchStrategy
Is used for switching the strategy.
function switchStrategy(address newStrategy) external;
newStrategy
address
address of the new staking strategy.
claimReward
Transfer all the token
reward to msg.sender
token
reward to msg.sender
function claimReward(address token) external;
token
address
address of the token.
rewardOf
Returns the total reward of the lender
function rewardOf(address lender, address token) external returns (uint);
lender
address
address
token
address
Returns the total pending reward
uint
return
Returns the total pending reward
getStrategyBalance
Returns total balance allocated by LenderPool in the Strategy (external protocol)
function getStrategyBalance() external view returns (uint);
unit
return
Returns total balance allocated by LenderPool in the Strategy external protocol
getDeposit
Returns total amount deposited by the lender.
function getDeposit(address lender) external view returns (uint);
lender
address
address of the lender
uint
returns
returns amount of stable token deposited by the lender
Last updated