IWusdnErrors

Git Source

Defines all custom errors emitted by the WUSDN token contract.

Errors

WusdnInsufficientBalance

The user has insufficient USDN balance to wrap the given usdnAmount.

error WusdnInsufficientBalance(uint256 usdnAmount);

Parameters

NameTypeDescription
usdnAmountuint256The amount of USDN the user attempted to wrap.

WusdnWrapZeroAmount

The user is attempting to wrap an amount of USDN shares that is lower than the minimum: SHARES_RATIO, required by the WUSDN token. This results in a wrapped amount of zero WUSDN.

error WusdnWrapZeroAmount();