NAME | USERS | REPAYED | |
---|---|---|---|
1 | USD Coin | 10046 | 874584817.99149 |
2 | Tether USD | 7263 | 396771381.323418 |
3 | Aptos Coin | 5089 | 15720755.2338419 |
4 | Staked Aptos Coin | 2528 | 6816876.5857272 |
5 | Move Dollar | 738 | 130752941.056083 |
6 | Wrapped Ether | 639 | 33925044.1962425 |
7 | Staked Thala APT | 392 | 2594657.84156245 |
8 | PancakeSwap Token | 292 | 4136645.39611607 |
9 | Thala Token | 262 | 311954.613624162 |
10 | aBTC | 107 | 1299419.33592054 |
Sbhn_NPechelon repay
Updated 2025-01-11
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
›
⌄
with price as (
select hour::date as datee,
token_address,
avg(price) as usdprice
from aptos.price.ez_prices_hourly
group by 1,2
)
select DISTINCT name,
count(DISTINCT ACCOUNT_ADDRESS) as users,
sum(amount/pow(10,decimals)*usdprice) as repayed
from aptos.core.fact_transfers a
join aptos.core.fact_transactions using(tx_hash)
join price p on block_timestamp::date=datee and a.token_address=p.token_address
left join aptos.core.dim_tokens t on a.token_address=t.token_address
where payload:function = '0xc6bc659f1649553c1a3fa05d9727433dc03843baac29473c817d06d39e7621ba::scripts::repay'
and transfer_event = 'WithdrawEvent'
group by 1
order by 2 desc
Last run: 3 months ago
10
381B
212s