GYSR documentation
Searchโฆ
GYSR
Benefits
History
๐
guide
Use cases
FAQ
Launching a Pool
Managing a Pool
Investing
Integrations
๐ง
Concepts
Pools
Modules
Factory
$GYSR token
๐
Developers
Core contracts
Deployment addresses
Interactions
Error codes
Subgraph
๐
Resources
Whitepapers
Safety
Media
Powered By
GitBook
Error codes
Core contract 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 controller 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
โ
โ
โ
Developers - Previous
Interactions
Next - Developers
Subgraph
Last modified
1mo ago
Copy link