⚠️Common Error Messages
Below are some common error messages you might see in the block explorer for your failed transactions and how to fix them
Error Messages | Explanation of what happened | Solutions |
ERC20: transfer amount exceeds allowance | You have previously set a limit on how much Alpaca's smart contract can move your token, which is lower than the amount your are now trying to execute. |
|
Vault::work:: bad work factor | Debt ratio is higher than the allowed leveraged. This normally happens when you try to add collateral to your active position but the amount is not enough to bring the position value below allowed leveraged. More explanation here Another scenario would be if a user try to open large position relative to the pool's liquidity which cause his position to immediately goes below the allowed work factor (through price impact caused from opening a position.) If you are not a whale, don't worry about this one. :) |
|
Vault::work:: insufficient funds in the vault | Not enough liquidity in the deposit vault for the loan size that you requested |
|
Vault::work:: too small debt size | The debt size you are requesting is too small. Please refer to this table for the minimum allowed debt size for each asset. |
|
Insufficient LP tokens received | Your transaction was reverted because there is a large, unfavorable price movement beyond your slippage settings before the transaction is confirmed |
|
Insufficient farming tokens received | Your transaction was reverted because there is a large, unfavorable price movement beyond your slippage settings before the transaction is confirmed |
|
Insufficient baseToken received | Your transaction was reverted because there is a large, unfavorable price movement beyond your slippage settings before the transaction is confirmed |
|
WorkerConfig::isStable:: price too high | Asset price on PCS is 10%+ higher than the price from our external price oracle. Read more about how this protect you from bad prices here |
|
BigNumber | One of the parameters your tx tried to pass was larger than what's accepted in the smart contract. When this error occurs, often, it's because you accidentally confirmed a duplicate tx for the same action, such as a deposit or withdrawal. Due to the funds already having moved, there's usually insufficient funds for a 2nd tx. Another common reason to see this is if slippage for an LYF position is too high. |
|
WorkerConfig::isStable:: price too low | Asset price on PCS is 10%+ lower than the price from our external price oracle. Read more about how this protect you from bad prices here |
|
Not EOA | For security reasons, we only allow whitelisted non-EOA (Externally Owned Account) to interact with our LYF and AV contracts. |
|
Last updated