Hedgey Community Docs
  • ✌️This is Hedgey.
  • Products
    • πŸͺ™Vesting Plans
      • Getting Started
        • βœ…Note for Issuers
        • πŸ‘©β€πŸ’ΌFor Issuers
        • πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦For Token Vesting recipients
        • βœ”οΈDelegating your tokens
    • πŸ’°Token Grants
      • Getting Started
      • πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦For Grant Recipients
      • πŸ‘¨β€πŸ’ΌFor Grant Issuers
    • πŸ›οΈInvestor Lockups
      • Getting Started
        • βœ…Note for Issuers
        • πŸ€΅β€β™€οΈFor Issuers
        • πŸ‘―For Investors who have received locked token allocations via Hedgey
      • Special Features
        • Segmenting Plans
        • βœ”οΈDelegating your tokens
      • Creating Investor Lockups using Fireblocks (+troubleshooting)
    • πŸ”Treasury Lockups
      • Getting Started
      • Creating Treasury Lockups
    • πŸͺ‚Token Claims
      • πŸ‡Getting started
        • Using token claims on Farcaster
        • 🎁For Claims Issuers
        • πŸ•΅οΈβ€β™‚οΈCreating a test claim to verify wallet addresses
        • πŸŽ‰For Claims Recipients (unlocked & locked claims)
    • πŸ•—Time Locks
      • πŸ‡Getting started
        • ⏰Creating Time Locks
  • 🧰Support docs
    • πŸ”΅Grants (Arbitrum STIP)
      • Getting Started
      • For STIP Grant Recipients
      • For Arbitrum Grant Issuers
    • πŸ”΅Grants (Arbitrum LTIPP)
      • Getting Started
      • For LTIPP Grant Recipients
      • For Arbitrum Grant Issuers
    • 🟣Grants (Polygon Village)
      • Getting Started
      • For Grant Recipients
      • For Polygon Village Grant Issuers
    • πŸ”΅Locking your team tokens and LP tokens on Hedgey using Hedgey Treasury Locks (for ShimmerSea)
      • Getting Started
      • Creating a Treasury Lockup
    • 🟠(Celo Specific) Connecting with Celo Terminal
    • βœ…(Celo Specific) using Hedgey through Valora
    • 🀩Governance
      • ⚑Hedgey <> Snapshot strategy
    • πŸ‘½On-Chain Governance
    • πŸ”ΊUsing Hedgey app with Fireblocks
    • βš’οΈTroubleshooting
    • πŸ’»Adding Hedgey Apps as "custom" Safe apps
    • πŸͺ±For Wormhole investors who have received lockups on Hedgey
    • ❀️‍πŸ”₯Creating Investor Lockups using FireBlocks (+troubleshooting)
    • 🐑Viewing your Puffer lockup
  • FOR DEVELOPERS
    • ⌚Technical Documentation
      • πŸ’ΎToken Vesting
        • Smart Contract Details
        • Integration & Direct Contract Interactions
      • πŸ“ΌToken Lockups
        • Smart Contract Details
        • Integration & Direct Contract Interactions
      • ☎️Delegation Architecture
        • Delegator Architecture
        • Voting Vaults & On-Chain Delegation
        • ERC721Delegate
      • πŸ₯³Token Claims
        • Smart Contract Information
      • πŸ“€V1 Contracts
        • Hedgeys NFT
          • Technical Details
        • DAO <> DAO Swap
        • Error Codes
    • 🏁Audits
    • πŸ“ŽBug Bounty
    • Deployments
      • Token Vesting Plans
      • Voting Token Vesting Plans
      • Vesting + Lockup Plans
      • Token Lockup Plans
      • Voting Token Lockup Plans
      • Bound Token Lockup Plans
      • Bound Voting Token Lockup Plans
      • Batch Planner Contract
      • Token Claims (ClaimCampaigns)
      • V1 Streaming Contracts
      • V1 Stream Vesting Contracts
      • Hedgeys
  • Contact HEDGEY
    • Social Media
    • Press and Media kit
  • LEGAL
    • Protocol Disclaimer
    • Terms of Use
    • Hedgey Pro Terms of Use
Powered by GitBook
On this page
  1. FOR DEVELOPERS
  2. Technical Documentation
  3. V1 Contracts

Error Codes

Below is a list of the error codes related to the HedgeyOTC, HedgeysNFT, TransferHelper, and NFTHelper smart contracts.

Error Code
Smart Contract
Method: Reason for failure and how to fix

OTC01

HedgeyOTC

create Error: Maturity is less than β€˜now’, the current block time stamp

OTC02

HedgeyOTC

create Error: Amount is less than the minimum amount

OTC03

HedgeyOTC

create Error: The price times the minimum is less than 0 and will fail during a purchase

OTC04

HedgeyOTC

close Error: Only the seller is allowed to close a deal or deal no longer exists

OTC05

HedgeyOTC

close Error: Deal has already been closed or completely purchased, the remaining amount is 0

OTC06

HedgeyOTC

buy Error: Buyer cannot be the seller

OTC07

HedgeyOTC

buy Error: Deal has already matured and can no longer be purchased

OTC08

HedgeyOTC

buy Error: The deal is whitelisted and the buyer is not on the whitelist

OTC09

HedgeyOTC

buy Error: The amount being purchased does not meet the minimum or the remaining amount, -OR- the remaining amount is less than the amount being purchased.

NFT01

Hedgeys (NFT)

createNFT Error: Either the amount is 0, or the token address is 0, or the unlock date is not in the future

NFT02

Hedgeys (NFT)

updateBaseURI Error: The baseURI has already been set once, only allowed to be set once

NFT03

Hedgeys (NFT)

_redeemNFT Error: The msg.sender is not the owner of that NFT [ID]

NFT04

Hedgeys (NFT)

_redeemNFT Error: Unlocking error - the unlock date is still in the future, or it has already been unlocked that the amount locked = 0

THL01

TransferHelper

transferTokens Error: The sending address has insufficient balances

THL02

TransferHelper

transferTokens Error: The token is a β€˜tax’ or β€˜deflationary’ token, where the amount received does not equal the amount sent. Please whitelist the address (if possible) for the smart contract that you are interacting with to prevent it from being taxed during transfer

THL03

TransferHelper

transferPayment Error: The message value does not equal exactly how much is required to be sent, do not deliver more or less than is required for the payment

THL04

TransferHelper

transferPayment & withdrawPayment Error: The method of delivering ETH to the recipient address failed

NHL01

NFTHelper

lockTokens Error: The unlock date is not in the future compared to the current time

NHL02

NFTHelper

lockTokens Error: The amount of tokens locked doesn’t match what the contract received, this may be from a burn or tax token.

Vesting and Streaming NFT Error Codes

Error Code
Smart Contract
Method: Reason for failure and how to fix
relevant functions

SV01

StreamVestingNFT, StreamingNFT

admin error: not the admin of the smart contract sending the function call (updateURI and deleteAdmin)

updateBaseURI, deleteAdmin

SV02

StreamVestingNFT, StreamingNFT

nft holder (recipient) error: the holder is either the 0 address or is the vestingAdmin

createNFT

SV03

StreamVestingNFT, StreamingNFT

token address error: the token address is the 0 address

createNFT

SV04

StreamVestingNFT, StreamingNFT

amount error: the input amount is 0

createNFT

SV05

StreamVestingNFT, StreamingNFT

rate error: the rate is either 0 or greater than the amount

createNFT

SV06

StreamVestingNFT, StreamingNFT

holder error: the owner of that NFT is not the holder / msg.sender

_redeemNFT

SV07

StreamVestingNFT

unlock error: the stream is not unlocked yet

_redeemNFT

SV08

StreamVestingNFT, StreamingNFT

balance error: the balance is 0, so there is nothing to redeem

_redeemNFT

SV09

StreamVestingNFT

vestingAdmin error: the msg.sender calling the function is not the streams admin who can revoke the NFT

_revokeNFT

SV10

StreamVestingNFT,

remainder error: there is no remainder for this NFT so there is nothing to revoke

_revokeNFT

SV11

StreamingNFT

remainder error: there is no remainder so the NFT will be burned upon redemption and cannot be transferred

redeemAndTransfer

SV12

StreamVestingNF, StreamingNFT

The cliff date exceeds the end vesting period, so there

createNFT

PreviousDAO <> DAO SwapNextAudits

Last updated 1 year ago

⌚
πŸ“€