This file contains error descriptions and why they occure
User may encounter Lib Errors, Pool Errors and Vault Errors
Dev may encounter all of errors ¯\_(ツ)_/¯
Description:
- Error caused by token duplication inside provided token array
Description:
- SafeERC20 call failed for some reason
Description:
- This error occures in transferFromUser() function of TokenUtils library for ERC20 token if balance after operation is lower than it was before transfer
Description:
- This error occures in transferToUser() function of TokenUtils library for ERC20 token if balance after operation is greater than it was before transfer
Description:
- Attempt of reentrancy attack was detected, mainly implemented for preventing reentrancy attacks using vault's flashloan function
Description:
- Pool factory was not able to deploy new pool
Description:
- Zero address was detected in unexpected place
Description:
- Provided arrays has different lengths
Description:
- Caller is not manager of called contract
Description:
- Caller attempted to call function of smart contract that is only accessible to vault contract
Description:
- Caller attempted to call function of smart contract that is only accessible to factory contract
Description:
- Length of weights array differes from length of provided tokens array
Description:
- Pool's amount of tokens limit exceeded
Description:
- Weights cannot be lower than set number
Description:
- Sum of weights must equal 1e18
Description:
- Provided token address does not belong to pool
Description:
- Inialization of pool must be done using all tokens presented in pool
Description:
- User tried to swap token to itself
Desctiption:
- User did not receive enough tokens as result of Sell tokens operation
Description:
- User paid too much tokens as result of Buy tokens operation
Description:
- User cannot sell more than 30% of pool's token balance
Description:
- User cannot buy more than 30% of pool's token balance
Description:
- User cannot use more than 70% of pool's LP balance to exit
Description:
- Vault does not implement required interface
Description:
- Factory address in vault must not be set in order to call function
Description:
- Attempt to use invalid path for virtual swap
Description:
- Provided pool address is not deployed by known factory
Description:
- Deadline time passed
Description:
- During the creation of pool it was not registered in corresponding vault
Description:
- Attempt to set too high swap fee for pool
Description:
- Attempt to set too high flashloan fee
Description:
- Not enough fee was received as a result of flashloan
Description:
- Attempt to withdraw too much fee from FeeReceiver contract