Skip to content

Commit

Permalink
Merge branch 'main' into hotfix/sql_typo
Browse files Browse the repository at this point in the history
  • Loading branch information
shuva10v authored Nov 27, 2024
2 parents d49a583 + 617f7dc commit 87432ab
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
7 changes: 7 additions & 0 deletions projects/defi/TONCO.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from models.project import DeFi

TONCO = DeFi(
name="TONCO",
defillama_slug="tonco",
url="https://app.tonco.io/#/pools",
)
Binary file added projects/icons/defi_farmix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added projects/icons/defi_tonco.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions seasons/s7.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
"""
S6 season config
"""
from models.season_config import SeasonConfig, DexPool
from projects.defi.Farmix import Farmix
from projects.defi.Coffin import Coffin
from projects.defi.SwapCoffee import SwapCoffeeVolume, SwapCoffeeTVL
from projects.defi.AquaProtocol import AquaProtocol
from projects.defi.DAOLama import DAOLama
from projects.defi.GasPump import GasPumpDeFi
from projects.defi.RainbowSwap import RainbowSwap
from projects.defi.SettleTON import SettleTON
from projects.defi.JVault import JVault
from projects.defi.TONCO import TONCO
from projects.defi.TONHedge import TONHedge
from projects.defi.TonStable import TonStable
from projects.defi.Parraton import Parraton
from projects.defi.TonPools import TonPools
from seasons.app_models import AppLeaderboardModelS6
from seasons.defi_models import DeFiTVLContribution, DeFiVolumeContribution
from seasons.nfts_models import NFTLeaderboardModelV1


S7_START = 1732705200 # Wed Nov 27 2024 11:00:00 GMT+0000
S7_END = 1734433200 # Tue Dec 17 2024 11:00:00 GMT+0000


S7_defi_tvl = SeasonConfig(
leaderboard=SeasonConfig.DEFI,
name="S7",
start_time=S7_START,
end_time=S7_END,
projects=[
DAOLama, SettleTON, JVault,
TONHedge, TonStable, Parraton, TonPools,
AquaProtocol, SwapCoffeeTVL, Coffin, TONCO, Farmix
],
score_model=DeFiTVLContribution(squads=[
(lambda tvl: tvl >= 5e6, "Over 5M$"),
(lambda tvl: tvl >= 1e6, "Under 5M$"),
(lambda tvl: True, "Under 1M$"),
]),
options={SeasonConfig.OPTION_DEFI_EXCLUDED_POOLS: []}
)

S7_defi_volume = SeasonConfig(
leaderboard=SeasonConfig.DEFI,
name="S7",
start_time=S7_START,
end_time=S7_END,
projects=[
GasPumpDeFi, RainbowSwap, SwapCoffeeVolume
],
score_model=DeFiVolumeContribution(squads=[
(lambda tvl: tvl >= 50 * 1e6, "Over 50M$"),
(lambda tvl: tvl >= 10 * 1e6, "Under 50M$"),
(lambda tvl: True, "Under 10M$"),
])
)

0 comments on commit 87432ab

Please sign in to comment.