Error codes
Error messages prefix glossary:
- VE = Validation Error
- PFE = Price feed Error
- AE = Address Error
- PE = Path Error
- ACE = Access Control Error
AE_NATIVE_TOKEN
string public constant AE_NATIVE_TOKEN = "1";
AE_REWARD1
"Invalid native token address"
string public constant AE_REWARD1 = "2";
AE_REWARD2
"Invalid Reward 1 token address"
string public constant AE_REWARD2 = "3";
AE_ROUTER
"Invalid Reward 2 token address"
string public constant AE_ROUTER = "4";
PE_SR_TO_JR_1
"Invalid Router token address"
string public constant PE_SR_TO_JR_1 = "5";
PE_SR_TO_JR_2
"Invalid Senior token address in Senior to Junior Path"
string public constant PE_SR_TO_JR_2 = "6";
PE_JR_TO_SR_1
"Invalid Junior token address in Senior to Junior Path"
string public constant PE_JR_TO_SR_1 = "7";
PE_JR_TO_SR_2
"Invalid Junior token address in Junior to Senior Path"
string public constant PE_JR_TO_SR_2 = "8";
PE_NATIVE_TO_SR_1
"Invalid Senior token address in Junior to Junior Path"
string public constant PE_NATIVE_TO_SR_1 = "9";
PE_NATIVE_TO_SR_2
"Invalid Native token address in Native to Senior Path"
string public constant PE_NATIVE_TO_SR_2 = "10";
PE_NATIVE_TO_JR_1
"Invalid Senior token address in Native to Senior Path"
string public constant PE_NATIVE_TO_JR_1 = "11";
PE_NATIVE_TO_JR_2
"Invalid Native token address in Native to Junior Path"
string public constant PE_NATIVE_TO_JR_2 = "12";
PE_REWARD1_TO_NATIVE_1
string public constant PE_REWARD1_TO_NATIVE_1 = "13";
PE_REWARD1_TO_NATIVE_2
"Invalid Reward1 token address in Reward1 to Native Path"
string public constant PE_REWARD1_TO_NATIVE_2 = "14";
PE_REWARD2_TO_NATIVE_1
"Invalid Native token address in Reward1 to Native Path"
string public constant PE_REWARD2_TO_NATIVE_1 = "15";
PE_REWARD2_TO_NATIVE_2
"Invalid Reward2 token address in Reward2 to Native Path"
string public constant PE_REWARD2_TO_NATIVE_2 = "16";
VE_DEPOSITS_CLOSED
"Invalid Native token address in Reward2 to Native Path"
string public constant VE_DEPOSITS_CLOSED = "17";
VE_DEPOSITS_NOT_STARTED
string public constant VE_DEPOSITS_NOT_STARTED = "18";
VE_AMOUNT_EXCEEDS_CAP
string public constant VE_AMOUNT_EXCEEDS_CAP = "19";
VE_INSUFFICIENT_BAL
string public constant VE_INSUFFICIENT_BAL = "20";
VE_INSUFFICIENT_ALLOWANCE
string public constant VE_INSUFFICIENT_ALLOWANCE = "21";
VE_INVALID_STATE
string public constant VE_INVALID_STATE = "22";
VE_TRANCHE_NOT_STARTED
"Invalid current state for the operation"
string public constant VE_TRANCHE_NOT_STARTED = "23";
VE_NOT_MATURED
"Tranche is not started yet to add LP"
string public constant VE_NOT_MATURED = "24";
PFE_INVALID_SR_PRICE
"Tranche is not matured for removing liquidity from LP"
string public constant PFE_INVALID_SR_PRICE = "25";
PFE_INVALID_JR_PRICE
"Senior tranche token price fluctuation is higher or the price is invalid"
string public constant PFE_INVALID_JR_PRICE = "26";
VE_ALREADY_CLAIMED
"Junior tranche token price fluctuation is higher or the price is invalid"
string public constant VE_ALREADY_CLAIMED = "27";
VE_NO_EXCESS
"Already claimed the excess tokens"
string public constant VE_NO_EXCESS = "28";
ACE_INVALID_ACCESS
"No excess tokens to claim"
string public constant ACE_INVALID_ACCESS = "29";
ACE_HASH_MISMATCH
"The caller is not allowed"
string public constant ACE_HASH_MISMATCH = "30";
ACE_GLOBAL_PAUSED
"Role string and role do not match"
string public constant ACE_GLOBAL_PAUSED = "31";
ACE_LOCAL_PAUSED
"Interactions paused - protocol-level"
string public constant ACE_LOCAL_PAUSED = "32";
ACE_INITIALIZER
"Interactions paused - contract-level"
string public constant ACE_INITIALIZER = "33";
VE_ALREADY_WITHDRAWN
"Contract is initialized more than once"
string public constant VE_ALREADY_WITHDRAWN = "34";
VE_CANNOT_WITHDRAW_YET
"User has already withdrawn funds from the tranche"
string public constant VE_CANNOT_WITHDRAW_YET = "35";
VE_INVALID_LENGTH
"Cannot withdraw less than 3 weeks from tranche end time"
string public constant VE_INVALID_LENGTH = "36";
VE_NOT_CLAIMED_YET
"Invalid swap path length"
string public constant VE_NOT_CLAIMED_YET = "37";
VE_NO_FARM
"The excess are not claimed to withdraw from tranche"
string public constant VE_NO_FARM = "38";
VE_INVALID_ALLOCATION
"There is no farm for the yield farming"
string public constant VE_INVALID_ALLOCATION = "100";
VE_INVALID_DISTRIBUTION_TOKEN
"Allocation cannot be zero"
string public constant VE_INVALID_DISTRIBUTION_TOKEN = "101";
VE_DISTRIBUTION_NOT_STARTED
"Invalid Struct token distribution amount"
string public constant VE_DISTRIBUTION_NOT_STARTED = "103";
VE_INVALID_INDEX
"Distribution not started"
string public constant VE_INVALID_INDEX = "105";
VE_NO_RECIPIENTS
"Invalid index"
string public constant VE_NO_RECIPIENTS = "106";
VE_INVALID_REWARD_RATE
"Must have recipients to distribute to"
string public constant VE_INVALID_REWARD_RATE = "107";
AE_ZERO_ADDRESS
"Reward rate too high"
string public constant AE_ZERO_ADDRESS = "108";
VE_NO_WITHDRAW_OR_EXCESS
"Address cannot be a zero address"
string public constant VE_NO_WITHDRAW_OR_EXCESS = "109";
VE_INVALID_DISTRIBUTION_FEE
User must have an excess and/or withdrawal to claim
string public constant VE_INVALID_DISTRIBUTION_FEE = "110";
VE_INVALID_TRANCHE_CAP
"Invalid native token distribution amount"
string public constant VE_INVALID_TRANCHE_CAP = "200";
VE_INVALID_STATUS
"Invalid min capacity for the given tranche"
string public constant VE_INVALID_STATUS = "202";
VE_INVALID_POOL
"Invalid status arg. The status should be either 1 or 2"
string public constant VE_INVALID_POOL = "203";
VE_TRANCHE_CAPS_EXCEEDS_DEVIATION
"Pool doesn't exist"
string public constant VE_TRANCHE_CAPS_EXCEEDS_DEVIATION = "204";
VE_TOKEN_INACTIVE
"Tranche caps exceed MAX_DEVIATION"
string public constant VE_TOKEN_INACTIVE = "205";
VE_EXCEEDS_TRANCHE_MAXCAP
"Token is not active"
string public constant VE_EXCEEDS_TRANCHE_MAXCAP = "206";
VE_BELOW_TRANCHE_MINCAP
"Given tranche capacity is more than the allowed max cap"
string public constant VE_BELOW_TRANCHE_MINCAP = "207";
VE_INVALID_RATE
"Given tranche capacity is less than the allowed min cap"
string public constant VE_INVALID_RATE = "209";
VE_INVALID_DEPOSIT_START_TIME
"Fixed rate is more than the threshold or equal to zero"
string public constant VE_INVALID_DEPOSIT_START_TIME = "210";
VE_INVALID_TRANCHE_START_TIME
"Deposit start time is not a future timestamp"
string public constant VE_INVALID_TRANCHE_START_TIME = "211";
VE_INVALID_TRANCHE_END_TIME
"Tranche start time is not greater than the deposit start time"
string public constant VE_INVALID_TRANCHE_END_TIME = "212";
VE_INVALID_TRANCHE_DURATION
"Tranche end time is not greater than the tranche start time"
string public constant VE_INVALID_TRANCHE_DURATION = "213";
VE_INVALID_LEV_MIN
"Tranche duration is not greater than the minimum duration specified"
string public constant VE_INVALID_LEV_MIN = "214";
VE_INVALID_LEV_MAX
"Invalid Leverage threshold min"
string public constant VE_INVALID_LEV_MAX = "215";
VE_INVALID_FARM
"Invalid Leverage threshold max"
string public constant VE_INVALID_FARM = "217";
VE_INVALID_SLIPPAGE
"Invalid Farm (PoolId)"
string public constant VE_INVALID_SLIPPAGE = "218";
VE_LEV_MAX_GT_LEV_MIN
"Slippage exceeds limit"
string public constant VE_LEV_MAX_GT_LEV_MIN = "219";
VE_INVALID_TRANSFER_AMOUNT
"Invalid leverage threshold limits (levMax must be > levMax)"
string public constant VE_INVALID_TRANSFER_AMOUNT = "220";
VE_MIN_DEPOSIT_VALUE
"Amount received is less than mentioned"
string public constant VE_MIN_DEPOSIT_VALUE = "221";
VE_INVALID_YS_INPUTS
"Minimum deposit value is not > 0 and < trancheCapacityUSD"
string public constant VE_INVALID_YS_INPUTS = "222";
VE_INVALID_INPUT_AMOUNT
"Length of LP tokens array and yield sources array are not the same"
string public constant VE_INVALID_INPUT_AMOUNT = "223";
VE_INVALID_TOKEN
"Input amount is not equal to msg.value"
string public constant VE_INVALID_TOKEN = "224";
VE_INVALID_YS_ADDRESS
"Token cannot be zero address"
string public constant VE_INVALID_YS_ADDRESS = "225";
VE_INVALID_ZERO_ADDRESS
"LP token and yield source cannot be zero addresses"
string public constant VE_INVALID_ZERO_ADDRESS = "226";
VE_INVALID_ZERO_VALUE
string public constant VE_INVALID_ZERO_VALUE = "227";
VE_INVALID_LEV_THRESH_MAX
string public constant VE_INVALID_LEV_THRESH_MAX = "228";
VE_INVALID_LEV_THRESH_MIN
string public constant VE_INVALID_LEV_THRESH_MIN = "229";
AVAX_TRANSFER_FAILED
string public constant AVAX_TRANSFER_FAILED = "230";
VE_YIELD_SOURCE_ALREADY_SET
"Failed to transfer AVAX"
string public constant VE_YIELD_SOURCE_ALREADY_SET = "231";
VE_INVALID_TRANCHE_DURATION_MAX
"Yield source already set on Factory"
string public constant VE_INVALID_TRANCHE_DURATION_MAX = "232";
VE_INVALID_NATIVE_TOKEN_DEPOSIT
"Tranche duration max is lesser than tranche duration min"
string public constant VE_INVALID_NATIVE_TOKEN_DEPOSIT = "233";
VE_INVALID_TRANCHE_DURATION_MIN
"Native token deposit is not allowed for non-wAVAX tranches"
string public constant VE_INVALID_TRANCHE_DURATION_MIN = "234";