Skip to content

Commit

Permalink
Merge pull request #258 from aleksandrkaekhtin/feature/s7_defi
Browse files Browse the repository at this point in the history
Remove DEX Dimonds
  • Loading branch information
aleksandrkaekhtin authored Nov 27, 2024
2 parents 17012a7 + 8f5bae3 commit 884724b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions seasons/S7_defi_scores.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ Methodology details for each projects:
Includes all trades on any dex in case of transaction chain includes a swap with referrall address [UQBBPVrn4Y6F0Fci4j0mXuSAXmRDeE-nZCRIInQsNC9__8vG](https://tonviewer.com/EQBBPVrn4Y6F0Fci4j0mXuSAXmRDeE-nZCRIInQsNC9__5YD).
Volume is estimated for all swaps with TON, staked TON or USDT according to the methodology from [TON-ETL](https://github.com/re-doubt/ton-etl/blob/main/parser/parsers/message/swap_volume.py).

### DEX Diamonds

The same methodology as for RainbowSwap, but with referral address [EQDZlJorSoB4cRJ5b8gt0qR4bkLfzVDVXe5SmMPcEl0TBNYv](https://tonviewer.com/EQDZlJorSoB4cRJ5b8gt0qR4bkLfzVDVXe5SmMPcEl0TBNYv).

### GasPump

Volume includes trades extracted from [Gaspump events](https://github.com/re-doubt/ton-etl/blob/main/parser/parsers/message/gaspump.py). USD value is calculated as a product of trade amount and price of TON at the time of trade.
Expand Down Expand Up @@ -119,7 +115,6 @@ Full list of participants and their impact on TVL could be obtained by [this que
|DeFi Protocol name | Squad | Points per each 20 USD|
|:-|:-|-:|
|Rainbow Swap|Volume|1|
|DEX Diamonds|Volume|1|
|GasPump|Volume|5|
|swap.coffee|Volume|1|
|TONPump by HOT Wallet|Volume|5|
Expand Down
7 changes: 0 additions & 7 deletions seasons/sql/s7_defi_volume.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ with swaps as (
), rainbow_points as (
select address, floor(sum(volume_usd) / 20.) * 1 as points from rainbow_swaps
group by 1
), tondiamonds_swaps as (
select 'tondiamonds' as project, tx_hash, swap_user as address, volume_usd from swaps where referral_address =upper('0:d9949a2b4a80787112796fc82dd2a4786e42dfcd50d55dee5298c3dc125d1304')
), tondiamonds_points as (
select address, floor(sum(volume_usd) / 20.) * 1 as points from tondiamonds_swaps
group by 1
), gaspump as (
select 'gaspump' as project, tx_hash, trader_address as address, ton_amount /1e9
* (select price from prices.ton_price where price_ts < event_time order by price_ts desc limit 1)
Expand Down Expand Up @@ -85,8 +80,6 @@ with swaps as (
), volume_points as (
select * from rainbow_points
union all
select * from tondiamonds_points
union all
select * from gaspump_points
union all
select * from swapcoffee_points
Expand Down

0 comments on commit 884724b

Please sign in to comment.