GYSR documentation
Search…
Contract errors codes
Revert codes
We have adopted a system of error codes at GYSR to save gas costs on long revert messages.
​
Code
Contract
Description
p1
Pool
withdraw amount is zero
p2
Pool
withdraw amount exceeds vested balance
​
​
​
f1
PoolFactory
Invalid staking module factory
f2
PoolFactory
Invalid reward module factory
f3
PoolFactory
Fee exceeds max
f4
PoolFactory
Invalid whitelist type
​
​
​
oc1
OwnerController
sender is not owner
oc2
OwnerController
sender is not controller
oc3
OwnerController
new owner is zero address
oc4
OwnerController
new owner is zero address
​
​
​
sm1
ERC20StakingModule
stake amount is zero
sm2
ERC20StakingModule
stake amount is too small
sm3
ERC20StakingModule
unstake or claim amount is zero
sm4
ERC20StakingModule
staking module has zero balance
sm5
ERC20StakingModule
unstake or claim amount is too small
sm6
ERC20StakingModule
unstake or claim amount exceeds user balance
​
​
​
Copy link