Docs
Search…
Error Codes
List of all the Error Codes in Paladin's contracts :
Code
Keyword
1
CALLER_NOT_ADMIN
The caller of the method must be the address listed as 'admin'
2
FAIL_TRANSFER
Fail during an external ERC20 transfer
3
FAIL_TRANSFER_FROM
Fail during an external ERC20 transferFrom
4
BALANCE_TOO_LOW
User palToken balance is too low
5
ALLOWANCE_TOO_LOW
User palToken allowance for the given spender is too low
6
SELF_TRANSFER
ERC20 self-transfer
9
INSUFFICIENT_CASH
Not enough underlying token in the PalPool
10
INSUFFICIENT_BALANCE
User underlying token balance is too low for the given amount
11
FAIL_DEPOSIT
Deposit function failed
12
FAIL_LOAN_INITIATE
Initialization of a new PalLoan failed
13
FAIL_BORROW
Borrow function failed
14
LOAN_CLOSED
Given PalLoan is already closed
15
NOT_LOAN_OWNER
User is not the owner of the given PalLoan
16
LOAN_OWNER
User is owner of the given PalLoan (only used in KillBorrow context)
17
FAIL_LOAN_EXPAND
ExpandBorrow function failed
18
NOT_KILLABLE
PalLoan cannot be killed yet
19
RESERVE_FUNDS_INSUFFICIENT
Not enough funds set as Reserve (admin method)
20
FAIL_MINT
Failed to mint the given palToken amount
21
FAIL_BURN
Failed to burn the given palToken amount
Copy link