IUsdnErrors

Git Source

Defines all custom errors emitted by the USDN token contract.

Errors

UsdnMaxTokensExceeded

The amount of tokens exceeds the maximum allowed limit.

error UsdnMaxTokensExceeded(uint256 value);

Parameters

NameTypeDescription
valueuint256The invalid token value.

UsdnInsufficientSharesBalance

The sender's share balance is insufficient.

error UsdnInsufficientSharesBalance(address sender, uint256 balance, uint256 needed);

Parameters

NameTypeDescription
senderaddressThe sender's address.
balanceuint256The current share balance of the sender.
neededuint256The required amount of shares for the transfer.

UsdnInvalidDivisor

The divisor value in storage is invalid (< 1).

error UsdnInvalidDivisor();

UsdnRebaseNotSupported

The current implementation does not allow rebasing.

error UsdnRebaseNotSupported();