🐞Error Codes

Core Contract

  • C01: Error occurs when trying to create a tariff with profit greater than the fee itself.

  • C02: Indicates that the tariff was not found.

  • C03: Indicates an invalid version of the deployed Game contract.

  • C04: Indicates that the game was not found.

  • C05: Indicates an invalid staking address.

  • C06: Indicates that the staking was not found.

  • C07: Indicates an invalid Pass membership.

  • C08: Indicates insufficient allowance.

  • C09: Indicates an invalid price when creating a new tariff.

  • C10: Indicates an invalid stake profit when creating a new tariff.

  • C11: Indicates an invalid amount to bet.

  • C12: Indicates an invalid amount to stake.

Partner contract

  • PA01: Indicates that the bet amount is zero.

  • PA02: Indicates that the staked amount is zero.

Conservative Staking Pool

  • CSP01: Pool reached full capacity.

  • CSP02: Staker is not a member of the pool.

  • CSP03: Stake has not ended yet.

  • CSP04: Stake already withdrawn.

  • CSP05: Staker has claimable rewards.

  • CSP06: Pool has no tokens to distribute.

  • CSP07: Pool has no stakers.

Conservative Staking

  • CS01: Staking amount is less than the minimum allowed amount.

  • CS02: New minimum stake amount is not in range.

  • CS03: Distribution is allowed only during the calculation window.

  • CS04: Staking or withdrawal is not allowed during the calculation window.

  • CS05: New pool creation is not allowed during the calculation window.

Dynamic Staking

  • DS01 - Staking amount is less than the min allowed amount: This error occurs when a user attempts to stake an amount that is lower than the minimum allowed stake amount set by the contract.

  • DS02 - New min stake amount is not in range: This error occurs when the contract attempts to set a new minimum stake amount, but the proposed value is not within the acceptable range defined by the contract.

  • DS03 - Distribution or withdraw is allowed only on Calculation Time: This error indicates that distribution of profits or withdrawals is only permitted during a specific calculation window, and any attempts to distribute or withdraw outside this window will result in the error.

  • DS04 - Stake or reserve funds are not allowed on Calculation Time: Similar to DS03, this error indicates that staking or reserving funds is prohibited during the calculation window.

  • DS05 - Invalid game address: This error occurs when an invalid game address is provided to the contract. It typically indicates that the address provided does not conform to the expected format or is not recognized by the contract.

  • DS06 - Insufficient balance to reserve: This error occurs when a user attempts to reserve funds, but their account balance is insufficient to cover the reserved amount.

  • DS07 - No profit or loss to distribute: This error indicates that there are no profits or losses available for distribution among stakeholders. It typically occurs when there are no funds available in the contract's balance to distribute.

  • DS08 - Unknown pool: This error occurs when the contract attempts to interact with a pool that is not recognized or does not exist within its internal records.

  • DS09 - Stake amount is not divisible by 2: This error indicates that a user's stake amount is not evenly divisible by 2, which may be a requirement set by the contract for certain operations or calculations.

  • DS10 - Pool is not distributed in this cycle: This error occurs when a user attempts to interact with a pool that has not yet been distributed in the current cycle. It typically indicates that profits or losses have not been calculated or distributed for the pool yet.

  • DS11 - Withdraw not possible due to undistributed losses or profits: This error indicates that a user's withdrawal request cannot be fulfilled because there are undistributed profits or losses associated with their stake in the pool.

  • DS12 - Creation of new pools is forbidden on Calculation Time: Similar to DS04, this error indicates that the creation of new pools is prohibited during the calculation window.

Dynamic Staking Pool

  • DSP01: Pool reached full capacity.

  • DSP02: Staker is not a member of the pool.

  • DSP03: Stakes have not ended yet.

  • DSP04: Stake already withdrawn.

  • DSP05: Staker has claimable.

  • DSP06: Pool has no tokens to distribute.

  • DSP07: Pool is closed.

  • DSP08: Pool has not enough tokens to distribute.

Pass

  • PS01 - Account already owns a pass.

  • PS02 - Inviter is not a member.

  • PS03 - Inviter did not meet requirements.

  • PS04 - Parent is not a member.

  • PS05 - Pass is not transferable.

  • PS06 - Inviter disabled mint.

  • PS07 - Caller is not a member.

  • AM01 - Throws when the affiliate address is set to zero.

Predict

  • P01 - Access error, only Core address is allowed.

  • P02 - Invalid input (amount) data to place a bet.

  • P03 - Invalid input (predict game) data to place a bet.

  • P04 - Invalid predict game.

  • P05 - Invalid bonus when creating a new predict game.

  • P06 - Invalid duration when creating a new predict game.

  • P07 - Invalid interval when creating a new predict game.

  • P08 - Invalid threshold when creating a new predict game.

  • P09 - Staking contract is not registered in Core.

Predict Game

  • PG01: Game is not active.

  • PG02: Round is full.

  • PG03: Round is not finished to calculate.

  • PG04: Data did not change since the start.

  • PG05: Data do not exist for the start or end of the round.

  • PG06: End data are too old to calculate the result.

Affiliate

  • A01 - pass is required: This error occurs when attempting an operation that requires a user to have a "pass" but they don't possess one.

  • A02 - nothing to claim: This error signifies that there is nothing available to claim in the context of bonuses or direct rewards.

  • A03 - new matched bonus must be greater than already known: This error is raised when trying to set a new matching bonus for a member, but the new amount is not greater than the existing bonus amount.

  • A04 - input is not in interval limits: This error is triggered when an input value falls outside the specified interval limits. It could occur during setting conditions such as invite staking, matching staking, or matching invitee conditions.

Affiliate Fund

  • AF01 - new value must be greater than MIN: This error occurs when attempting to set a value that is lower than the minimum allowed value.

  • AF02 - new value must be lower than MAX: This error is raised when trying to set a value that exceeds the maximum allowed value.

  • AF03 - nothing to claim: This error signifies that there is nothing available to claim, either due to no claimable bonuses or already claimed bonuses for the day.

  • AF04 - already claimed this day: This error occurs when attempting to claim bonuses on the same day when they have already been claimed.

Last updated