VesperEarnDrip

IVesperPoolV2

An interface.

getPricePerShare

1
function getPricePerShare() external view returns (uint256)
Copied!

VesperEarnDrip

This contract handles the "drip" of the yield asset in Vesper Earn pools. It inherits from PoolRewards.

DripRewardPaid

1
event DripRewardPaid(address user, address rewardToken, uint256 reward)
Copied!

GrowTokenUpdated

1
event GrowTokenUpdated(address oldGrowToken, address newGrowToken)
Copied!

growToken

1
address growToken
Copied!

receive

1
receive() external payable
Copied!

claimable

1
function claimable(address _account) external view returns (address[] _rewardTokens, uint256[] _claimableAmounts)
Copied!
Returns claimable reward amount.
In case of growToken it will return the actual underlying value
Name
Type
Description
_rewardTokens
address[]
Array of tokens being rewarded
_claimableAmounts
uint256[]
Array of claimable for token on same index in rewardTokens

notifyRewardAmount

1
function notifyRewardAmount(address _rewardToken, uint256 _rewardAmount, uint256 _rewardDuration) external
Copied!
Notify that reward is added. Also updates reward rate and reward earning period.

updateGrowToken

1
function updateGrowToken(address _newGrowToken) external
Copied!
Defines which rewardToken is a growToken
growToken is used to check whether to call withdraw from Grow Pool or not

_calculateRewardInDripToken

1
function _calculateRewardInDripToken(address _rewardToken, uint256 _reward) private view returns (uint256)
Copied!
The rewardToken AKA growToken is a Vesper Grow Pool which can be V2 or V3 pool. V2 and V3 pools have different signatures to read price per share.