Error Codes
Comprehensive list of all Error Codes which a user can encounter while using the Spool Protocol.
Error Code | Function | Meaning |
---|---|---|
FEE | lowerVaultFee | Only the Vault Owner can change the fee. |
FEE | lowerVaultFee | Updated vault fee must be lower than current. |
WSH | _withdrawShares | User does not have enough Shares. |
VSH | _verifyStrategies | Incorrect Strategies. |
OOD | _onlyOwnerOrSpoolOwner | Caller is not the Vault Owner or the Spool DAO. |
OSP | _onlySpool | Can only be invoked by Spool Contract. |
OFW | _onlyFastWithdraw | Can only be invoked by Fast Withdraw Contract. |
NMR | _noMidReallocation | Cannot withdraw while Spool is reallocating. |
RDS | _isVaultRedistributing | Vault is not reallocating. |
Error Code | Function | Meaning |
---|---|---|
BTK | _getReward | Unsupported Reward Token. |
BCFG | addToken | Bad configuration. |
TMAX | addToken | Cannot have more than 5 Reward Tokens. |
RTB | _notifyRewardAmount | Reward amount cannot exceed uint192 bits including accuracy. |
LRR | _notifyRewardAmount | Reward rate must be equal or higher if rewards are not finished yet. |
NUT | _exceptUnderlying | Vault underlying token cannot be a Reward Token. |
RNF | _onlyFinished | Rewards not finished. |
Error Code | Function | Meaning |
---|---|---|
NRED | _noReallocation | Cannot execute a full withdraw when vault is reallocating. |
Error Code | Function | Meaning |
---|---|---|
NUL | _adjustAllocation | No underlying assets to redistribute. |
BPP | _adjustDistribution | Bad new proportion percentage. |
NRD | _adjustDistribution | Redistribution did not withdraw or deposit. |
Error Code | Function | Meaning |
---|---|---|
NDP | deposit | Amount too low. |
CA0 | claim | User claim amount is 0. |
NST | _hasStrategies | Vault does not have any strategies. |
NSTR | notifyStrategyRemoved | Strategy is not part of the vault. |
Error Code | Function | Meaning |
---|---|---|
NTVLT | _isVault | Not a vault. |
OCTRL | _onlyController | Can only be invoked by Controller. |
OFWD | _onlyFastWithdraw | Can only be invoked by Fast Withdraw. |
ODHW | _onlyDoHardWorker | Can only be invoked by the DoHardWorker. |
NORLC | _noPendingReallocation | Can only execute when there is no reallocation pending. |
OKSTRT | _notRemoved | Strategy should not be removed. |
RMSTR | _onlyRemoved | Strategy should be removed. |
OALC | onlyAllocationProvider | Can only be called by the Allocation Provider. |
Error Code | Function | Meaning |
---|---|---|
SDEX | runDisableStrategy | Disable already executed for a removed Strategy. |
SEWP | emergencyWithdraw | Cannot perform Emergency Withdraw for a Strategy. |
Error Code | Function | Meaning |
---|---|---|
RLC | batchDoHardWork | Spool is reallocating. |
BIPT | batchDoHardWork | Bad input. |
1TX | batchDoHardWork | DoHardWork should be executed in one transaction. |
1TX | batchDoHardWorkReallocation | DoHardWork should be executed in one transaction. |
F1TX | batchDoHardWorkReallocation | DoHardWork should be executed in one transaction. |
NOSTR | batchDoHardWorkReallocation | No Strategy Indexes. |
BWI | _batchDoHardWorkReallocation | Bad withdrawal input. |
WNF | _batchDoHardWorkReallocation | Withdrawal phase did not finish. |
BDI | _batchDoHardWorkReallocation | Too many deposit Strategies. |
SWNP | _batchDoHardWorkReallocation | Strategy not in withdrawal phase. |
SWP | _processWithdraw | Strategy not in withdrawal phase. |
BPRC | _getPriceData | Bad strategy value. |
SFIN | _doHardWork | Strategy DHW has already been executed for index. |
SFIN | _doHardWorkReallocation | Strategy DHW has already been executed for index. |
BRLC | _verifyReallocationProportions | Bad reallocation proportions. |
Error Code | Function | Meaning |
---|---|---|
NOVRLC | reallocateVaults | No vaults provided to reallocate. |
RLCINP | reallocateVaults | Reallocation already in progress. |
BSTRS | verifyVaultStrategies | Strategies do not match. |