forked from DefiLlama/DefiLlama-Adapters
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Oxiswap adapter (DefiLlama#11960)
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const { sumAllTokens } = require("../helper/chain/fuel") | ||
|
||
async function tvl(_, _1, _2, { api }) { | ||
const pairContract = '0x0da1be8528c8f546521ba9507d334cdb06cbc8b8842b3c0a871b1b4195635363'; | ||
return sumAllTokens({ api, owners: [pairContract] }); | ||
} | ||
|
||
module.exports = { | ||
methodology: "TVL is calculated by summing the value of all tokens held in the pair contract.", | ||
fuel: { tvl }, | ||
timetravel: false, | ||
}; |