Skip to content

ErrorTypes ​

Git Source

State Variables ​

FlashLender__ZeroAddress ​

| | FlashLender | |__________________________________

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

solidity
uint256 internal constant FlashLender__ZeroAddress = 80001;

FlashLender__MaxFlashLoanAmountExceeded ​

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

solidity
uint256 internal constant FlashLender__MaxFlashLoanAmountExceeded = 80002;

FlashLender__InvalidReturnValue ​

Thrown when a function returns an unexpected value.

solidity
uint256 internal constant FlashLender__InvalidReturnValue = 80003;

FlashLender__Unauthorized ​

Thrown when an unauthorized action is attempted.

solidity
uint256 internal constant FlashLender__Unauthorized = 80004;

FlashLender__TokenNotSupported ​

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

solidity
uint256 internal constant FlashLender__TokenNotSupported = 80005;

FlashLender__DuplicateBorrow ​

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

solidity
uint256 internal constant FlashLender__DuplicateBorrow = 80006;