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 |
Last updated