This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(revert-fi): Add compounding Uniswap v3 LP positions (#1112)
- Loading branch information
1 parent
9f1c2c0
commit 2c83174
Showing
9 changed files
with
247 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/apps/revert-finance/graphql/accountCompoundingTokensQuery.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { gql } from 'graphql-request'; | ||
|
||
type AccountTokens = { | ||
id: string; | ||
account: string; | ||
compoundCount: string; | ||
compounded0: string; | ||
}; | ||
|
||
export type CompoundingAccountTokens = { | ||
tokens: Array<AccountTokens>; | ||
}; | ||
|
||
export const accountCompoundingTokensQuery = gql` | ||
query getAccountCompoundingTokens($address: String) { | ||
tokens(where: { account: $address }) { | ||
id | ||
account | ||
compoundCount | ||
compounded0 | ||
} | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.