LenderPool
deposit
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
Send lender T-Stable equivalent to stable deposited.
withdrawDeposit
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.
Requirements
RedeemPool
should have stable tokens more than lender deposited.
switchRewardManager
Is used to switch reward managers.
newRewardManager
address
newRewardManager, Address of the new RewardManager
.
switchVerification
Updates the Verification contract address.
switchVerification
address
Updates the Verification contract address.
switchStrategy
Is used for switching the strategy.
newStrategy
address
address of the new staking strategy.
claimReward
Transfer all the token
reward to msg.sender
token
reward to msg.sender
token
address
address of the token.
rewardOf
Returns the total reward of the lender
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)
unit
return
Returns total balance allocated by LenderPool in the Strategy external protocol
getDeposit
Returns total amount deposited by the lender.
lender
address
address of the lender
uint
returns
returns amount of stable token deposited by the lender
Last updated