From 11bd6db45aae342cd025a815855826b5af88ab47 Mon Sep 17 00:00:00 2001 From: "T.K" Date: Thu, 18 Jan 2024 15:19:06 -0500 Subject: [PATCH] add fees to usyc --- .env_example | 10 ---------- queryengine/contracts/utils.go | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 .env_example diff --git a/.env_example b/.env_example deleted file mode 100644 index b6b3203..0000000 --- a/.env_example +++ /dev/null @@ -1,10 +0,0 @@ -CANTO_MAINNET_RPC_URL="" -CANTO_MAINNET_GRPC_URL ="" -DB_HOST="redis" -DB_PORT=6379 -PORT=":3000" -QUERY_INTERVAL = 3 -MULTICALL_ADDRESS="" -TESTNET=false -REDIS_HOST_PASSWORD="" -CANTO_BACKUP_RPC_URLS="...,...,..." \ No newline at end of file diff --git a/queryengine/contracts/utils.go b/queryengine/contracts/utils.go index 1095c67..0b8d70d 100644 --- a/queryengine/contracts/utils.go +++ b/queryengine/contracts/utils.go @@ -273,7 +273,7 @@ func GetProcessedCTokens(ctx context.Context, cTokens TokensMap) ([]ProcessedCTo balance, _ := InterfaceToBigInt(cToken["latestRoundDetails"][1]) interest, _ := InterfaceToBigInt(cToken["latestRoundDetails"][2]) updatedAt, _ := InterfaceToBigInt(cToken["latestRoundDetails"][4]) - supplyApy = HashnoteAPY(balance, interest, updatedAt) + supplyApy = HashnoteAPY(balance, interest, updatedAt) - 0.5 } if tag == "fbill" { supplyApy = 4.90