ErrorTypes

Git Source

State Variables

FlashLender__ZeroAddress

| | FlashLender | |__________________________________

Thrown when a function encounters or is provided with an address set to the zero address.

uint256 internal constant FlashLender__ZeroAddress = 80001;

FlashLender__MaxFlashLoanAmountExceeded

Thrown when the requested flash loan amount exceeds the allowed maximum.

uint256 internal constant FlashLender__MaxFlashLoanAmountExceeded = 80002;

FlashLender__InvalidReturnValue

Thrown when a function returns an unexpected value.

uint256 internal constant FlashLender__InvalidReturnValue = 80003;

FlashLender__Unauthorized

Thrown when an unauthorized action is attempted.

uint256 internal constant FlashLender__Unauthorized = 80004;

FlashLender__TokenNotSupported

Thrown when an operation involves a token that isn't supported.

uint256 internal constant FlashLender__TokenNotSupported = 80005;

FlashLender__DuplicateBorrow

Thrown when a token is already being borrowed by flashloan protocol.

uint256 internal constant FlashLender__DuplicateBorrow = 80006;