Supplying WETH (Flexible duration)
ZBond Contract
Supplying WETH
// @notice Container for supply balance information
struct SupplySnapshot {
uint256 principalSupply; // the principle deposit
uint256 startDate; // the start date of the deposit
uint256 virtualBalance; // see below
}// @notice A caller can deposit underlying tokens into ZBond and receive a ZBond Nft
// @param amount The amount of underlying tokens the caller would like to deposit
// @return The ZBond NFT tokenId minted for this deposit
function mint(uint256 amount) external override nonReentrant returns (uint256 tokenId)Redeeming WETH
Helper functions
Last updated