Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

IApyUSD

Git Source

Inherits: EAddressNotSet, EDenied

Title: IApyUSD

Interface for apyUSD ERC4626 synchronous tokenized vault

Defines events for the sync vault implementation

Events

UnlockTokenUpdated

Emitted when the CommitToken contract is updated

event UnlockTokenUpdated(address indexed oldUnlockToken, address indexed newUnlockToken);

Parameters

NameTypeDescription
oldUnlockTokenaddressPrevious CommitToken contract address
newUnlockTokenaddressNew CommitToken contract address

UnlockTokenDepositError

Emitted when the deposit to UnlockToken fails

event UnlockTokenDepositError(uint256 assets, uint256 unlockTokenShares);

Parameters

NameTypeDescription
assetsuint256Amount of assets deposited
unlockTokenSharesuint256Amount of unlockToken shares received

VestingUpdated

Emitted when the Vesting contract is updated

event VestingUpdated(address indexed oldVesting, address indexed newVesting);

Parameters

NameTypeDescription
oldVestingaddressPrevious Vesting contract address
newVestingaddressNew Vesting contract address

UnlockingFeeUpdated

Emitted when the unlocking fee is updated

event UnlockingFeeUpdated(uint256 oldFee, uint256 newFee);

Parameters

NameTypeDescription
oldFeeuint256Previous unlocking fee
newFeeuint256New unlocking fee

FeeWalletUpdated

Emitted when the fee wallet is updated

event FeeWalletUpdated(address indexed oldFeeWallet, address indexed newFeeWallet);

Parameters

NameTypeDescription
oldFeeWalletaddressPrevious fee wallet address
newFeeWalletaddressNew fee wallet address

Errors

UnlockTokenError

Error thrown when the deposit to UnlockToken fails

error UnlockTokenError(string reason);

Parameters

NameTypeDescription
reasonstringReason for the error

SlippageExceeded

Error thrown when slippage protection is violated

error SlippageExceeded(uint256 expected, uint256 actual);

Parameters

NameTypeDescription
expecteduint256Expected amount
actualuint256Actual amount

FeeExceedsMax

Error thrown when fee exceeds maximum allowed

error FeeExceedsMax(uint256 fee);

Parameters

NameTypeDescription
feeuint256The fee that was attempted to be set