Get Diem amount out
Get Diem amount out

Venice · Reads onchain state

Quotes the DIEM a lock of staked VVV mints at the curve's current supply. The staking contract's getDiemAmountOut walks its supply curve from the DIEM already minted, each step minting at a higher rate of sVVV per DIEM, and returns the DIEM at 18 decimals. It reverts when the curve has no supply left for the amount. Reach for it to gate a mint on the rate the curve offers, or to compare minting with buying DIEM on a market.