FluidLendingStakingRewards

rewardsToken

contract IERC20 rewardsToken

stakingToken

contract IERC20 stakingToken

rewardsDuration

uint256 rewardsDuration

periodFinish

uint256 periodFinish

rewardRate

uint256 rewardRate

lastUpdateTime

uint256 lastUpdateTime

rewardPerTokenStored

uint256 rewardPerTokenStored

userRewardPerTokenPaid

mapping(address => uint256) userRewardPerTokenPaid

rewards

mapping(address => uint256) rewards

constructor

constructor(address _owner, contract IERC20 _rewardsToken, contract IERC20 _stakingToken, uint256 _rewardsDuration) public

totalSupply

function totalSupply() external view returns (uint256)

balanceOf

function balanceOf(address account) external view returns (uint256)

lastTimeRewardApplicable

function lastTimeRewardApplicable() public view returns (uint256)

rewardPerToken

function rewardPerToken() public view returns (uint256)

earned

function earned(address account) public view returns (uint256)

getRewardForDuration

function getRewardForDuration() external view returns (uint256)

stakeWithPermit

function stakeWithPermit(uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external

stake

function stake(uint256 amount) external

withdraw

function withdraw(uint256 amount) public

getReward

function getReward() public

exit

function exit() external

notifyRewardAmount

function notifyRewardAmount(uint256 reward) external

updateReward

modifier updateReward(address account)

RewardAdded

event RewardAdded(uint256 reward)

Staked

event Staked(address user, uint256 amount)

Withdrawn

event Withdrawn(address user, uint256 amount)

RewardPaid

event RewardPaid(address user, uint256 reward)