LogoLogo
  • CrossCurve MetaLayer
    • βš™οΈWhat is CrossCurve MetaLayer
      • CrossCurve Consensus bridge
      • CrossCurve Pools v2
    • πŸ—ΊοΈRoadmap
      • 2024
  • 🏒CrossCurve DAO
    • Overview of CrossCurve DAO
    • Voting
    • Obtaining veEYWA and Calculating the Boost
    • Staking mechanics
    • NFTs
      • CrossCurve DAO NFT
      • EYWA NFT Collection
  • πŸ’ΌEarn with CrossCurve
    • Staking in CrossCurve
    • Providing Liquidity to CrossCurve Pools
    • Voting for Incentives
  • πŸ“–user documentation
    • πŸ›ΈMigration to Sonic
      • Why are we moving to Sonic
      • Sonic Upgrade Stages
      • Liquidity transfer from Fantom to Sonic
      • Sonic Incentives on CrossCurve MetaLayer
    • πŸ”ƒSwap interface
      • How to trade
      • Slippage settings
      • Routing
    • 🌊Liquidity Interface
      • Easy mode
      • via Curve (Balanced)
      • Liquidity provision use cases
        • Deposit
          • Easy mode (Imbalanced)
          • via Curve (Balanced)
        • Withdraw
          • Easy mode (Imbalanced)
          • via Curve (Balanced)
        • Curve Knowledge Database
          • Balanced liquidity provision
          • Guide to transferring CRV from Fantom chain to Ethereum mainnet
          • Disclamer
    • 🏒DAO
      • Locker Interface
      • Vote Interface
      • Incentives Interface
      • Working with the EYWA Locker contract in Arbiscan.
    • 🌾Yield
      • Farms Interface
        • Staking liquidity and earning rewards
      • APR Calculator
      • EYWA pool via Convex
    • πŸ’ΌVesting
      • Claim portal interface
      • Early farming program interface
    • EYWA NFT
      • Bridge interface in the Aurora chain
      • Merge interface in the Arbitrum chain
      • EYWA NFT Manager interface
      • Dashboard interface
    • Leaderboard
    • ❄️Outdated
      • Early farming program
  • πŸ“–Developer documentation
    • Pools/asset contracts
      • Hubchain Pools and Assets
      • πŸ’±Supported tokens
    • πŸ”—CrossCurve smart contracts
    • πŸ’»Guide for Developers
      • Technical Documentation for CrossCurve DAO Smart Contracts
        • CalldataHelperV1
        • DelegationManagerV1
        • DelegationConditionValidatorV1
        • EmissionManagerV1
        • EscrowManager
        • EscrowVoteManagerV1
        • GaugeFactoryV1
        • GaugeV1
        • IncentiveRewardsDistributor
        • LockHolderFactoryV1
        • LockHolderV1
        • ProposalManager
        • RebaseRewardsDistributorV1
        • RewardsDistributorFactoryV1
        • Treasury
      • πŸ”ƒMake cross-chain swap
      • πŸ”¦Tracking cross-chain swap
      • πŸ“”Pusher API Reference
      • πŸ“Glossary
      • API Specification
  • πŸ“£About CrossCurve
    • πŸ›‘οΈSecurity audits
    • 🧠Team
    • Project History
    • Website
    • Telegram
    • Twitter
    • Medium
    • Discord
    • YouTube
    • LinkedIn
    • GitHub
Powered by GitBook
On this page
  • The formula for the linear relationship between lock time and voting power boost is:
  • Features of setting lock time in a smart contract when creating a lock
  • The total votes a token holder has are calculated using the formula:
  • EYWA DAO NFT
  • Creating an EYWA DAO NFT
  • Calculating veEYWA:
  • Restrictions when creating an EYWA DAO NFT
  • Modifying an EYWA DAO NFT
  • Increasing veEYWA using EYWA NFTs
  • NFT Rarity Types and Their Characteristics
  • Calculating the NFT Boost to Increase Voting Power
  • Maximum Possible Number of Votes
  • Protection Against Front-Running Front-running is a practice in which someone (usually a trader or bot) gains information about an upcoming transaction and uses it to execute a trade earlier, thereby gaining an advantage.
Export as PDF
  1. CrossCurve DAO

Obtaining veEYWA and Calculating the Boost

PreviousVotingNextStaking mechanics

Last updated 1 month ago

In order to become a participant in CrossCurve DAO, you need to lock your EYWA tokens or EYWA NFT along with them.

Users can lock EYWA tokens for up to 3 years, receiving veEYWA β€” their voting power in the DAO. The longer the lock duration and the higher the NFT rarity, the greater the participant’s voting power (influence) in the DAO and the more incentives and benefits they gain.

Voting power decreases as the token unlock time approaches unless the lock is extended. This encourages long-term commitment, strengthens the project’s stability, and allows participants to actively influence its development.

EYWA NFTs multiply veEYWA, increasing voting power, income, and a user's influence in the DAO. To do this, you must attach EYWA tokens or one or more Vesting Safes containing EYWA tokens to an EYWA NFT.

A Vesting Safe is a special contract from the CrossCurve team that stores locked EYWA tokens. The tokens in the safe unlock according to an algorithm matching the type of round in which they were received.

The is a smart contract where owners lock their EYWA tokens for various durations. The purpose of locking is to obtain voting power in the form of veEYWA. Voting power depends on the lock duration: the longer the lock, the greater the voting power for the same number of locked tokens.

  • Maximum lock duration: 3 years (156 weeks), providing the maximum ratio: 1 locked token = 1 vote.

  • Minimum lock duration: a few days (until the end of the current epoch). For example, 2 days give 2/1092 of a vote.

Example: 156 tokens locked for one week give 1 vote.

The formula for the linear relationship between lock time and voting power boost is:

G=T156G=\frac{T}{156}G=156T​

Where T is the lock time in weeks (Formula 1)


Features of setting lock time in a smart contract when creating a lock

Tlockoutend=Tnow+Tendcurrentepoch+nβˆ—Tepoch+24hourT_{lockout end} = T_{now} + T_{end current epoch} + n * T_{epoch} + 24 hourTlockoutend​=Tnow​+Tendcurrentepoch​+nβˆ—Tepoch​+24hour

where:

n - the number of weeks the user wants to lock tokens.

Additionally, the total lock time cannot exceed 156 epochs (weeks).

G=156βˆ—7βˆ—24βˆ—60βˆ’1156βˆ—7βˆ—24βˆ—60G = \frac{156*7*24*60-1}{156*7*24*60}G=156βˆ—7βˆ—24βˆ—60156βˆ—7βˆ—24βˆ—60βˆ’1​

However, time constantly moves forward, and even a minute later:

G=156βˆ—7βˆ—24βˆ—60βˆ’61156βˆ—7βˆ—24βˆ—60G = \frac{156*7*24*60-61}{156*7*24*60}G=156βˆ—7βˆ—24βˆ—60156βˆ—7βˆ—24βˆ—60βˆ’61​

Whether or not to continuously update the lock time, and at what intervals, is a decision each DAO participant must make individually based on their own objectives and intentions.

VveEYWA=βˆ‘i=1nViβˆ—GiV_{veEYWA} = \sum^n_{i=1}V_{i}*G_{i}VveEYWA​=i=1βˆ‘n​Viβ€‹βˆ—Gi​

Where:

  • n is the number of users who have locked their EYWA tokens

(Formula 2)


EYWA DAO NFT

Key features:

  • Attaching assets: Each EYWA DAO NFT can have EYWA tokens, Vesting Safes, and other EYWA NFTs attached to it.

  • Obtaining veEYWA: The obtained veEYWA is automatically tired to the corresponding EYWA DAO NFT.

  • Multiple ownership: A user can own an unlimited number of EYWA DAO NFT.

  • Summation of veEYWA: The total amount of a user’s veEYWA is equal to the sum of the veEYWA of all their EYWA DAO NFTs.

Thus, EYWA DAO NFT serves as a hub for managing your locked assets and voting power in the DAO, providing flexibility and scalability in project governance.


Creating an EYWA DAO NFT

When creating an EYWA DAO NFT in the Locker, you can lock EYWA tokens in various states When transferring to the Locker:

  1. EYWA tokens (standard ERC-20)

  1. Vesting Safe contracts with direct ownership (held in the user’s wallet)

  • Ownership of the Vesting Safe contract is transferred to the Locker.

  1. Vesting Safe contracts with ownership via an NFT (Vesting Safe contracts attached to an EYWA NFT)

  • The Vesting Safe is detached from an EYWA NFT and transferred to the Locker.

  • The EYWA NFT ownership is also transferred to the Locker.

  1. ERC-20 EYWA tokens with ownership via an NFT (EYWA tokens attached to an EYWA NFT)

  • Tokens are detached from an EYWA NFT and transferred to the Locker.

  • Ownership of an EYWA NFT is also transferred to the Locker.

Calculating veEYWA:

Restrictions when creating an EYWA DAO NFT

  • You cannot create an EYWA DAO NFT by adding an empty EYWA NFT to the Locker.

  • You can attach no more than 100 Vesting Safes and 100 EYWA NFTs to one EYWA DAO NFT.


Modifying an EYWA DAO NFT

You can modify an EYWA DAO NFT in several ways:

Adding additional EYWA tokens:

  • You can lock more EYWA tokens in any of the ways described above at the time of creating an EYWA DAO NFT.

Adding/attaching empty EYWA NFTs:

  • You can attach additional empty EYWA NFTs to an existing EYWA DAO NFT.

Removing/detaching EYWA NFTs:

  • You can detach an EYWA NFT from an EYWA DAO NFT, returning them to the user’s ownership.

Extending the lock duration of tokens:

  • You can extend the lock duration of already locked EYWA tokens to increase voting power.


Increasing veEYWA using EYWA NFTs

EYWA NFT Collection

Attaching and Detaching EYWA NFTs

  • Attaching EYWA NFTs:

    • When one or more EYWA NFTs are added to an EYWA DAO NFT, a boost is applied to the locked EYWA tokens, increasing voting power.

  • Detaching EYWA NFTs:

    • If an EYWA DAO NFT did not participate in pool voting in the current epoch:

      • EYWA NFTs can be attached at any time.

    • If an EYWA DAO NFT participated in pool voting in the current epoch:

      • The attached EYWA NFTs involved in voting cannot be detached

      • To detach them, you must cancel the vote for the pools.


NFT Rarity Types and Their Characteristics

Rarity
Multiplier for veEYWA (MV)
Capacity per NFT (CT)

Common

1,006

500

Uncommon

1,036

3 000

Rare

1,3

25 000

Legendary

2,8

250 000

Infinity

3

1 500 000

MV (Multiplier for veEYWA): A multiplier that increases veEYWA.

CT (Capacity per NFT): The maximum number of EYWA tokens affected by an NFT.


Calculating the NFT Boost to Increase Voting Power

Vrarity=Ncommonβˆ—500+Nuncommonβˆ—3000+Nrareβˆ—25000+Nlegendaryβˆ—250000+Ninfinityβˆ—1500000V_{rarity} = N_{common}*500+N_{uncommon}*3000+N_{rare}*25000+N_{legendary}*250000+N_{infinity}*1500000Vrarity​=Ncommonβ€‹βˆ—500+Nuncommonβ€‹βˆ—3000+Nrareβ€‹βˆ—25000+Nlegendaryβ€‹βˆ—250000+Ninfinityβ€‹βˆ—1500000

- this is the total number of tokens that can be affected by NFT boosts (Formula 3)

Vresult=Vallβˆ’Vrarity+Ncommonβˆ—500βˆ—1.006+Nuncommonβˆ—3000βˆ—1.036++Nrareβˆ—25000βˆ—1.3+Nlegendaryβˆ—250000βˆ—2.8+Ninfinityβˆ—1500000βˆ—3V_{result} = V_{all}-V_{rarity}+N_{common}*500*1.006+ N_{uncommon}*3000*1.036+ +N_{rare}*25000*1.3+N_{legendary}*250000*2.8+N_{infinity}*1500000*3Vresult​=Vallβ€‹βˆ’Vrarity​+Ncommonβ€‹βˆ—500βˆ—1.006+Nuncommonβ€‹βˆ—3000βˆ—1.036++Nrareβ€‹βˆ—25000βˆ—1.3+Nlegendaryβ€‹βˆ—250000βˆ—2.8+Ninfinityβ€‹βˆ—1500000βˆ—3

(Formula 4)

Vtemp=VallV_{temp} = V_{all}Vtemp​=Vall​

Examples of NFT Boost Calculations


Maximum Possible Number of Votes

The CrossCurve protocol provides a unique system that allows reaching a maximum number of votes β€” 2β€―820β€―221β€―429. This figure is achieved through a combination of EYWA tokens and NFT multipliers, as well as their optimal distribution according to capacity.


Protection Against Front-Running Front-running is a practice in which someone (usually a trader or bot) gains information about an upcoming transaction and uses it to execute a trade earlier, thereby gaining an advantage.

In the new version of our NFT collection, a β€œfreeze” mechanism has been introduced. After detaching tokens from an NFT, a 4-hour period is activated during which the NFT cannot be moved. This prevents the aforementioned unscrupulous practice: if a user attempts to detach tokens from an NFT being sold. They cannot finalize the deal since the NFT cannot be transferred to the buyer. As a result, only buyers who possess tokens will be able to purchase the NFT, reducing the risk of front-running.

Furthermore, the mechanism also applied to cases where tokens are locked in the DAO Locker. This means that when locking an NFT in the Locker, the same 4-hour β€œfreeze” applies. This delay is necessary to ensure the system’s security and prevent abuse. Users should keep this feature in mind to avoid misunderstandings. It’s important to plan NFT-related actions with a β€œfreeze” period in mind.

When working with the smart contract, note that the contract automatically "rounds" the submitted lock date to the end of the previous epoch (Thursday 00:00 UTC). This means that if a date falls on a Friday, Saturday or Monday, the smart contract will set the lock time to the preceding Thursday.

To accommodate this behavior, the website interface for interacting with the sends a especially calculated date, to the smart contract:

- the current time,

- time remaining until the end of the current epoch,

- the duration of one epoch (1 week),

Due to these mechanics, achieving a value equal to 1 is nearly impossible. The closest approximation can only occur if a locking transaction is sent for 156 weeks immediately after the start of a new epoch, such as Thursday at 00:00:01 UTC. In that case:

The total votes a token holder has are calculated using the formula:

is the number of tokens locked by the owner i, considering NFT boosts,

is the lock-time coefficient for user i,

EYWA DAO NFT is an ERC-721 NFT created when EYWA tokens are locked in the .

Ownership is transferred to the contract.

The calculates the amount of veEYWA based on the total number of EYWA tokens locked, including both standard ERC-20 tokens and those in the Vesting Safe.

A released collection EYWA NFTs allows users to increase their voting power in the DAO. To do this, you must attach your NFTs from this collection in the. When sending NFT tokens, they are locked under different conditions than standard EYWA tokens.

total number of tokens locked by the owner

number of tokens of the same rarity locked by the owner

If is greater than or equal to , then the overall boost formula is:

If is greater than , it means the volume of tokens that could theoretically be influenced by the NFT boost is greater than the owner’s tokens. Therefore, we must fairly allocate the available token volume for the greatest results. For that, we use the following algorithm:

=*1500000

If is less than or equal to , then = *3;

Else: = *3; =-

=*250000

If is less than or equal to , then: =+ *2.8;

Else: = + ; =-

=*25000

If is less than or equal to , then =+ *1.3;

Else: = + ; =-

=n*3000

If is less than or equal to , then =+ *1.036;

Else: = + ; =-

=*500

The overall results are equal to =+ *1.006

The final is then used to determine the amount of veEYWA votes owned by the token holder.

Example: 1 000 000 tokens and one Legendary NFT are locked (=1). Using the Formula 3: =0*500+ 0*3000+0*25000+1*250000+0*1500000 = 250000

Since is greater than , we shall use the Formula 4:=1000000-250000+0*500*1.006+ 0*3000*1.036++0*25000*1.3+1*250000*2.8+0*1500000*3 = 750000+700000=1450000

Example. 1 000 000 tokens and ten Legendary NFTs are locked (=10). Using the Formula 3: =0*500+ 0*3000+0*25000+10*250000+0*1500000 = 2500000

Since is less than , we cannot use the Formula 4. Therefore, we shall use the following algorithm:

==1 000 000

=*1500000=0

is greater than , therefore

= *3=0; =- = 1 000 000

=*250000 = 10* 250 000 = 2 500 000

If is less than or equal to , therefore the final calculations are equal to: =+ *2.8 = 0+1 000 000 *2.8 = 2 800 000

Example. 2 000 000 tokens,1 Infinity NFT ( =1) and 10 Legendary NFTs are locked(=10). Using the Formula 3, we get: =0*500+ 0*3000+0*25000+10*250000+1*1500000 = 4 000 000

Since is less than , we cannot use the Formula 4. Therefore, we shall use the following algorithm:

==2 000 000

=*1500000 =1*1 500 000

is greater than , therefore

= *3=4 500 000; =-=2 000 000 -1 500 000 = 500 000

=*250000=10*250 000 = 2 500 000

is less than , therefore the final calculations are equal to: =+ *2.8=4 500 000 + 500 000*2.8 = 5 200 000

🏒
Locker
Locker
EYWA Locker
Locker
Locker
Locker
Locker