Skip to content

Latest commit

 

History

History
91 lines (54 loc) · 4.66 KB

S6_defi_scores.md

File metadata and controls

91 lines (54 loc) · 4.66 KB

S6 DeFi Users scores

S6 DeFi consists of two squads: the Volume Squad and the TVL Squad. Each squad has a different scoring system. Both squads requires explicit enrollement with Degen SBT. SBT Collection address is EQArE6_3GESQqKwECcgQw-17cuF2_ObtDKqn3-sABG1uuezv, full list of participants could be obtained with the help of SBTEnrollmentSync.

All queries provided below works with postgres DB produced by TON-ETL.

Volume Squad

User score is calculated as a trading volume in any of target projects nominated in USD. Trading volume is calculated during the period of the season. Methodology details for each projects:

RainbowSwap

Includes all trades on any dex in case of transaction chain includes a swap with referrall address UQBBPVrn4Y6F0Fci4j0mXuSAXmRDeE-nZCRIInQsNC9__8vG. Volume is estimated for all swaps with TON, staked TON or USDT according to the methodology from TON-ETL.

GasPump

Volume includes trades extracted from Gaspump events. USD value is calculated as a product of trade amount and price of TON at the time of trade.

Tradoor Perps

Volume includes all changes of traders position extracted by parser. Only events for specific opcodes are taken into account:

  • 10 - market order to open or increase position
  • 11 - limit order to open or increase position
  • 12 - market order to close or decrease position
  • 13 - take profit order
  • 14 - stop loss order

Full list of volume generating transaction and eligible users could be obtained using the following query:

TVL Squad

User score is calculated as a total increase of its position locked in all protocols. Initially position is calulcated in tokens and converted to USD based on the price of the token at the time of the season end.

JVault

All pools are SBTs from this collection. Each SBT owns one or more jetton masters and all holders of these jettons are considered as LPs. Total amount of TVL for each pool is a sum of all tokens and DEX LP tokens owned by this pool.

SettleTon

All pools are jettons with the same code_hash - BfWQzLvuCKusWfxaQs48Xp+Nf+jUIBN8BVrU0li7qXI=. These pools are holding DEX LP tokens which are producing TVL.

Parraton

All pools are jettons with the same admin address - EQBwWldOF2pHx4XM6CHlwdxVG6ZfcOgokT767236ZIGE5hKI. These pools are holding DEX LP tokens which are producing TVL.

DAOLama

TVL is amount of TON on main contract address.

TON Hedge

TVL is amount of TON on main contract address.

TON Pools

TVL originated from deposits and decreased by withdrawals. Deposits are messages with opcode 0x21eeb607 to tonpools.ton, withdrawals are messages with opcode 0x0ba69751 to tonpools.ton followed by "Withdraw completed" response message which carries amount of TON to withdraw.

TON Stable

TVL originated after tsTON/stTON deposits, so it is a sum of all tsTON/stTON transfers by the users to the project smart-contract

Aqua Protocol

TVL originated after tsTON/stTON/hTON deposits, so it is a sum of all tsTON/stTON/hTON transfers by the users to the project smart-contract

TonStakers

TVL impact is calculated as an increase of token position by transfers to specific staking NFT collections. The list of tokens and collections is present in here.

Queries to get full list of participants and their impact to TVL are available in sql folder: