DepositReceipt
from the past round
. Using the round
and amount
, we update the unredeemedShares
field. This essentially tracks how many shares the user owns, but has not yet redeemed.rollToNextOption
, the vault will mint all the shares that are owed to users to address(this)
. This increments the vaultState.round
.RibbonVault.shares(account)
DepositReceipt
s are used to track all the user's unredeemed shares. This is used for withdrawals and redemptions in the future.initiateWithdraw
function, which queues the shares to be burned.completeWithdraw
function, which burns the shares, and returns the assets.completeWithdraw
only AFTER the week's Friday 10am UTC. For example, the user calls initiateWithdraw
on Wednesday. They can only complete the withdrawal after the same week's Friday 10am UTC.initiateWithdraw(10)
, and I do initiateWithdraw(20)
again, I will have a total withdrawal of 30 shares by Friday.withdrawInstantly
to return up to 10 ETH, from Wednesday till Friday.address(this)
. This is not ideal for protocols or Meta-Vaults that want to hold custody of their shares. By calling the redeem
or maxRedeem
function, contracts are able to take custody of their vault shares.initiateWithdraw
.