Reward
deposit
Increases the lender
deposit by amount.
lender
deposit by amount.
Parameter Name
Type
Description
lender
address
address of the lender
amount
uint
amount deposited by lender
Requirements
Parameter Name
Description
amount
should be greater than 0
withdraw
withdraws the amount
from lender
amount
from lender
Parameters Name
Type
Description
lender
address
address of the lender
amount
uint
amount requested by lender
Requirements
Parameter Name
Description
amount
should be greater than 0 should be greater than deposited by the lender
claimReward
updates the value of the reward.
Parameter Name
Type
Description
newReward
uint16
current reward offered by the contract.
setReward
updates the value of reward.
Parameter Name
Type
Description
newReward
uint16
current reward offered by the contract.
pauseReward
sets the apy to 0.
rewardOf
returns the total pending reward of the lender.
Parameter Name
Type
Description
lender
address
lender, address of the lender.
getReward
Returns the total reward.
Parameter Name
Type
Description
uint
return
returns the total reward.
getRewardToken
Returns the address of the reward token
Parameter Name
Type
Description
address
returns
address of the reward token.
Last updated