Errors

Git Source

Errors

InvalidCaller

Thrown when msg.sender is not the expected one.

error InvalidCaller(address caller, address expectedCaller);

CallerNotAdmin

Thrown when msg.sender is not the expected one.

error CallerNotAdmin(address admin_, address caller_);

NotPoolAdminOrGovernor

Thrown when msg.sender is neither the pool admin nor the governor.

error NotPoolAdminOrGovernor(address caller_);

NotPoolAdmin

Thrown when msg.sender is not the pool admin

error NotPoolAdmin(address caller_);

NotPoolConfigurator

Thrown when msg.sender is not the pool configurator

error NotPoolConfigurator(address caller_);

InvalidAddressesProvider

error InvalidAddressesProvider(address provider, address expectedProvider);

ERC20TransferFailed

error ERC20TransferFailed(address asset, address from, address to, uint256 amount);

FunctionPaused

error FunctionPaused(bytes4 sig);

ProtocolPaused

error ProtocolPaused();

PoolConfigurator_InvalidPoolAdmin

Thrown when the pool admin set is not on the whitelist

error PoolConfigurator_InvalidPoolAdmin(address poolAdmin_);

PoolConfigurator_InvalidPoolAsset

Thrown when the asset set is not on the whitelist

error PoolConfigurator_InvalidPoolAsset(address asset_);

PoolConfigurator_CallerNotLoanManager

Thrown when msg.sender is not the loan manager

error PoolConfigurator_CallerNotLoanManager(address expectedCaller_, address caller_);

PoolConfigurator_CallerNotPoolAdminOrGovernor

Thrown when caller is not pool admin or governor

error PoolConfigurator_CallerNotPoolAdminOrGovernor(address caller_);

PoolConfigurator_CallerNotGovernor

Thrown when caller is not governor

error PoolConfigurator_CallerNotGovernor(address caller_);

PoolConfigurator_PoolSupplyZero

Thrown when the total supply of the pool is zero

error PoolConfigurator_PoolSupplyZero();

PoolConfigurator_InsufficientCover

Thrown when the pool cover is insufficient

error PoolConfigurator_InsufficientCover();

PoolConfigurator_InsufficientLiquidity

Thrown when the pool has insufficient liquidity to fund new loans

error PoolConfigurator_InsufficientLiquidity();

PoolConfigurator_NoAllowance

Thrown when the spender has no allowance from the owner

error PoolConfigurator_NoAllowance(address owner_, address spender_);

PoolConfigurator_PoolApproveWithdrawalManagerFailed

Thrown when the pool fails to approve the withdrawal manager with the amount of shares

error PoolConfigurator_PoolApproveWithdrawalManagerFailed(uint256 amount_);

PoolConfigurator_DepositCoverFailed

Thrown when the pool admin fails to deposit cover

error PoolConfigurator_DepositCoverFailed(address caller_, uint256 amount_);

PoolConfigurator_WithdrawCoverFailed

Thrown when the pool admin fails to withdraw cover

error PoolConfigurator_WithdrawCoverFailed(address recipient_, uint256 amount_);

PoolConfigurator_Paused

Thrown when the pool configurator is paused

error PoolConfigurator_Paused();

Globals_CallerNotPoolConfigurator

error Globals_CallerNotPoolConfigurator(address poolConfigurator, address caller);

Globals_ToInvalidPoolAdmin

error Globals_ToInvalidPoolAdmin(address poolAdmin);

Globals_ToInvalidPoolConfigurator

error Globals_ToInvalidPoolConfigurator(address poolConfigurator);

Globals_AdminZeroAddress

error Globals_AdminZeroAddress();

Globals_CallerNotPendingGovernor

error Globals_CallerNotPendingGovernor(address pendingGovernor, address caller);

Globals_InvalidVault

error Globals_InvalidVault(address vault);

Globals_InvalidReceivable

error Globals_InvalidReceivable(address receivable);

Globals_RiskFreeRateGreaterThanOne

error Globals_RiskFreeRateGreaterThanOne(uint256 riskFreeRate);

Globals_MinPoolLiquidityRatioGreaterThanOne

error Globals_MinPoolLiquidityRatioGreaterThanOne(uint256 minPoolLiquidityRatio);

Globals_protocolFeeGreaterThanOne

error Globals_protocolFeeGreaterThanOne(uint256 protocolFee);

LoanManager_CallerNotBuyer

Thrown when msg.sender is not the buyer.

error LoanManager_CallerNotBuyer(address expectedBuyer_);

LoanManager_CallerNotSeller

Thrown when msg.sender is not the seller.

error LoanManager_CallerNotSeller(address expectedSeller_);

LoanManager_InvalidReceivable

Thrown when buyer approves an invalid receivable (either buyer or seller is not whitelisted or repayment timestamp is in the past).

error LoanManager_InvalidReceivable(uint256 receivablesTokenId_);

LoanManager_PrincipalRequestedTooHigh

Thrown when the buyer requests for a principal larger than the face amount of the receivable

error LoanManager_PrincipalRequestedTooHigh(uint256 principalRequested_, uint256 maxPrincipal_);

LoanManager_Overdraw

Thrown when the seller overdraws

error LoanManager_Overdraw(uint16 loanId_, uint256 amount_, uint256 withdrawableAmount_);

LoanManager_NotLoan

Thrown when the loan id is invalid

error LoanManager_NotLoan(uint16 loanId_);

LoanManager_LoanImpaired

Thrown when the loan is already impaired

error LoanManager_LoanImpaired(uint16 loanId_);

LoanManager_LoanNotImpaired

Thrown when the loan is not impaired

error LoanManager_LoanNotImpaired(uint16 loanId_);

LoanManager_PastDueDate

Thrown when the loan is past due date

error LoanManager_PastDueDate(uint16 loanId_, uint256 dueDate_, uint256 currentTimestamp_);

LoanManager_CollateralAssetNotAllowed

error LoanManager_CollateralAssetNotAllowed(address collateralAsset_);

LoanManager_NotPastDueDatePlusGracePeriod

error LoanManager_NotPastDueDatePlusGracePeriod(uint16 loanId_);

LoanManager_CallerNotReceivableBuyer

error LoanManager_CallerNotReceivableBuyer(address expectedBuyer_);

Receivable_CallerNotBuyer

error Receivable_CallerNotBuyer(address caller);

Receivable_CallerNotGovernor

error Receivable_CallerNotGovernor(address governor, address caller);

Receivable_InvalidGlobals

error Receivable_InvalidGlobals(address globals);

WithdrawalManager_ZeroWindow

Thrown when the window duration set is 0

error WithdrawalManager_ZeroWindow();

WithdrawalManager_WindowGreaterThanCycle

Thrown when the window duration set is larger than the cycle duration

error WithdrawalManager_WindowGreaterThanCycle();

WithdrawalManager_WithdrawalPending

Thrown when the withdrawal is still pending

error WithdrawalManager_WithdrawalPending(address owner_);

WithdrawalManager_NoOp

Thrown when the action results in no change

error WithdrawalManager_NoOp(address owner_);

WithdrawalManager_Overremove

Thrown when the owner removes more shares than they have

error WithdrawalManager_Overremove(address owner_, uint256 shares_, uint256 lockedShares_);

WithdrawalManager_NoRequest

Thrown when the owner has no withdrawal request (that is locked shares is zero)

error WithdrawalManager_NoRequest(address owner_);

WithdrawalManager_InvalidShares

Thrown when the shares a owner requests to withdraw differs from their withdrawal request

error WithdrawalManager_InvalidShares(address owner_, uint256 requestedShares_, uint256 lockedShares_);

WithdrawalManager_NotInWindow

Thrown when the current time is not in the owner's withdrawal window

error WithdrawalManager_NotInWindow(uint256 currentTimestamp_, uint256 windowStart_, uint256 windowEnd_);

Pool_ZeroAsset

error Pool_ZeroAsset();

Pool_ZeroConfigurator

error Pool_ZeroConfigurator();

Pool_FailedApprove

error Pool_FailedApprove();

Pool_RecipientZeroAddress

error Pool_RecipientZeroAddress();

Pool_DepositGreaterThanMax

error Pool_DepositGreaterThanMax(uint256 assets, uint256 maxDeposit);

Pool_MintGreaterThanMax

error Pool_MintGreaterThanMax(uint256 shares, uint256 maxMint);

Pool_InsufficientPermit

error Pool_InsufficientPermit(uint256 assets, uint256 permits);

Pool_RedeemMoreThanMax

error Pool_RedeemMoreThanMax(uint256 shares, uint256 maxRedeem);

Pool_WithdrawalNotImplemented

error Pool_WithdrawalNotImplemented();

Last updated