Apeswap

Apeswap ERC-5725 Vesting NFT Transfers

Apeswap, rebranded as ApeBond, uses ERC-5725 to represent vesting allocations through transferable NFTs. Ownership can change while the underlying tokens continue along the contract's release schedule. A transfer gives the new owner the remaining allocation; earlier claims reduce that allocation, and transfer permission differs from permission to collect tokens.

Updated on

ERC-721 compatibility handles familiar NFT ownership and transfer operations. ERC-5725 adds a shared way to read the payout token and vesting state, helping distinguish an NFT's original allocation from the tokens that remain available.

NFT ownership and the remaining allocation

A bond NFT represents rights to tokens that a contract releases under a defined vesting schedule. Transferring the NFT changes the owner of those remaining rights. Tokens that a previous holder already claimed stay outside the position. The ownership change does not replenish the original allocation or accelerate its release.

The new owner can collect available payouts under the contract's conditions, while valid claim permissions can also authorize another caller. Ownership therefore matters alongside the payout counters. An NFT can retain a substantial unvested allocation even when its currently claimable balance equals zero.


Vested totals and tokens available to claim

ERC-5725 separates tokens that have vested from tokens that a caller can claim immediately. Its interface exposes payout values for each NFT, allowing software to distinguish released amounts from earlier withdrawals. An original allocation figure alone cannot establish how many tokens remain inside the position.

Vested tokens and previous claims

The vestedPayout value is the total vested amount, including tokens already claimed. The claimedPayout value records the cumulative payout claimed from the NFT. Subtracting previous claims from the vested total identifies the vested balance that remains unclaimed.

The vestingPayout value describes tokens that continue vesting toward a future date. Those tokens remain part of the allocation, although the holder cannot collect them yet. A transfer changes ownership of the NFT without erasing its earlier payout history.

Cliffs and amounts available to claim

The claimablePayout value identifies tokens available for an immediate claim. A contract can impose an unlock cliff that keeps this amount at zero despite recording vested tokens. Consequently, the vested balance minus previous claims can exceed the amount available to withdraw.

The release configuration determines whether those values coincide. A simple schedule can make unclaimed vested tokens immediately available, while an implementation with an additional lock can delay access. Reading the dedicated claimable amount preserves that distinction.


Claim permissions and control of the NFT

ERC-5725 separates permission to collect tokens from permission to transfer the NFT.

ERC-721 transfer approval

A transfer-approved operator can move the NFT, including to itself. Once it owns the NFT, it can claim available tokens under the release conditions. Granting transfer approval therefore exposes control of the remaining rights that the NFT represents. Approval alone leaves ownership unchanged.

ERC-5725 claim approval

ERC-5725 claim approval permits token claims without granting permission to transfer the NFT. The standard's claim function pays the claimable amount to the caller's address. An approved claim operator can therefore receive those tokens; delegation does not require payment to the NFT owner.

Permission for one NFT or the collection

Claim approval can cover a single token ID or all NFTs that the owner holds in the issuing contract. Collection-wide permission has a broader scope than approval for one NFT. It does not authorize unrelated contracts or every asset in the wallet. The owner can remove claim approval, although that action does not reverse an earlier payout.

Visual outline: Apeswap: Claim permissions and control of the NFT

View image file


Token identity and compatible displays

An NFT's contract address, token ID and network identify the position that a transfer concerns. The NFT token ID and payout token address describe different objects. Different contracts can issue NFTs with the same token ID. ERC-721 support lets software recognize NFT ownership; ERC-5725 supplies vesting data. A wallet or marketplace may display the collectible without presenting its release curve. The payoutToken function identifies the asset that the contract pays for that NFT. A token ticker or image alone cannot establish the remaining payout.

A hypothetical transfer after an earlier claim

Consider a hypothetical bond NFT with an original allocation of 743 payout-token units. Its vested total equals 183 units, previous claims total 43 units and the contract reports 140 units currently claimable. A reader considering acquisition needs to confirm the remaining allocation before the transfer. These figures leave 700 unclaimed units: 140 available now and 560 still vesting. Acquiring the NFT would transfer rights to those 700 units under the existing schedule. A claim by the owner or a valid claim operator would pay 140 units to that caller, leaving NFT ownership unchanged.

If the seller claims those 140 units before the transfer, previous claims rise to 183 units. Assuming no further vesting between these observations, the remaining allocation falls to 560 units and the claimable balance becomes zero. The NFT now represents only the future releases in this example.

A mismatch calls for a fresh read of the payout counters before signing. Refreshing those values requires no change of ownership or broader approval. If the updated allocation remains acceptable, a completed transfer must show the intended receiving address as owner of that exact NFT. A marketplace signature alone does not establish that ownership change.


A transferable position and an executable sale

An NFT transfer changes ownership; a secondary sale also needs an accepted price and a willing counterparty. ERC-721 compatibility provides a technical basis for marketplace integration. A venue's listing support and its presentation of vesting information remain implementation choices. Transferability supplies no standing offer to buy the allocation. Remaining token quantity alone cannot establish resale value. Waiting time and changes in the payout token's market value affect the position's economics. The discount on the original bond purchase applies to that purchase; it does not fix a later sale price. A buyer acquires remaining rights under the release terms, including any applicable cliff.


Release curves beyond a straight line

ApeBond's LP-token bond model uses linear release over a vesting term that the project selects. ERC-5725 accommodates a broader range of schedules.

The schedule on an individual NFT

The vestingPeriod function reports start and end timestamps. The end marks when the vested amount stops increasing. It does not mean that the wallet has already received the payout. Claiming represents that separate action, even after the release schedule finishes.

Other curves under the standard

ERC-5725 can represent cliffs and other deterministic release curves. Its common interface does not require every implementation to use linear vesting. Those capabilities do not establish that a specific ApeBond market offers every curve type. The individual NFT's contract determines how much vests at a given timestamp.


The bonding application under the ApeBond name

Apeswap announced its rebrand to ApeBond on October 10, 2023. The project's shift toward bonds provides the context for its vesting NFT application. The historical BANANA and GNANA token migration concerned ABOND, and its migration terms do not define every later bond. Partner-project bonds can represent different payout assets. A transfer's meaning changes with the NFT's remaining balance and release conditions, which belong to that allocation.

Apeswap questions, answered

Can an ERC-5725 bond NFT be split into smaller allocations?

ERC-5725 does not define an operation that divides a bond NFT into smaller vesting positions. Its inherited ERC-721 transfer operation changes ownership of the individual NFT. An application would need additional functionality to split an allocation. Transferability alone therefore does not establish that part of a bond can change owners separately.

How does software identify ERC-5725 support?

Software can query ERC-165 interface detection for the ERC-5725 interface identifier, 0xbd3a202b. That response identifies the interface that a contract advertises. It does not establish the accuracy of a separate wallet display. Reading the NFT's vesting values remains a separate integration task.

Why can a historical vesting chart differ from a payout history?

A historical vesting value describes the release schedule, while payout history records claims that actually occurred. The function vestedPayoutAtTime can reconstruct scheduled vesting at an earlier timestamp. Reconstructing earlier claims requires historical transaction data, such as PayoutClaimed events. A current claimed total alone does not show when each payout happened.

Are ERC-5725 payout assets limited to ERC-20 tokens?

ERC-5725 describes underlying payout assets as ERC-20 tokens or other token types. That scope belongs to the standard; a particular bond has its own payout asset and implementation. It does not establish that ApeBond offers every token type. The NFT wrapper's ERC-721 compatibility and the asset that it pays describe different roles.

Does ERC-5725 set a fixed fee for NFT transfers or claims?

ERC-5725 does not prescribe a universal transfer or claim fee. Transaction charges depend on the network and any application or marketplace involved.

Is NFT rental included in the ERC-5725 base standard?

NFT rental needs functionality beyond the ERC-5725 base interface. The standard identifies rental as a possible extension, while its core interface handles vesting data and claims alongside inherited NFT ownership. An application could add rental support, but ERC-5725 compatibility alone does not show that a particular bond offers temporary ownership or rental rights.