Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spot-staking-subgraph/src/charmVault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,6 @@ export function handleFees(event: CollectFees): void {
dailyStat.token0Fees = dailyStat.token0Fees.plus(formatBalance(event.params.feesToVault0, vault.token0Decimals))
dailyStat.token1Fees = dailyStat.token1Fees.plus(formatBalance(event.params.feesToVault1, vault.token1Decimals))
dailyStat.totalFeeVal = dailyStat.token1Fees.times(dailyStat.token1Price).plus(dailyStat.token0Fees.times(dailyStat.token0Price))
dailyStat.feeYield = dailyStat.totalFeeVal.div(dailyStat.tvl)
dailyStat.feeYield = dailyStat.totalFeeVal.div(dailyStat.tvl.minus(dailyStat.totalFeeVal))
dailyStat.save()
}
3 changes: 1 addition & 2 deletions spot-subgraph/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ yarn build

yarn graph deploy $2 \
--node https://subgraphs.alchemy.com/api/subgraphs/deploy \
--deploy-key $GRAPH_AUTH \
--ipfs https://ipfs.satsuma.xyz
--deploy-key $GRAPH_AUTH