Supplying ETH (fixed duration)
Provisioning Pool (PP) Contract
Stake WETH
struct StakeData {
// @notice The time when the staking expires
uint256 expireTime;
// @notice The amount of underlying token staked
uint256 stakedUnderlying;
// @notice The virtual amount that keeps tracks the proportional underlying token share of this staking unit
uint256 virtualBalance;
// @notice The duration of this staking unit
uint256 duration;
}// @notice This function allows a user to stake 'amount' of underlying token for 'time' duration
// @param amount The amount of underlying token to be staked
// @param time The duration of the staking unit
// @return The provisioningPool Nft tokenId minted
function stake(uint256 amount, uint256 duration) external override nonReentrant returns (uint256) Unstake WETH
Helper functions
Last updated