Skip to content

Commit

Permalink
aded sparkling adapter (#10047)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarekkkkk authored May 3, 2024
1 parent 7095781 commit 62b37a5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions projects/sparkling/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const ADDRESSES = require("../helper/coreAssets.json");
const sui = require("../helper/chain/sui");

const SPARKLING_SBUCK_FLASK_ID =
"0xc6ecc9731e15d182bc0a46ebe1754a779a4bfb165c201102ad51a36838a1a7b8";

async function tvl(api) {
const object = await sui.getObject(SPARKLING_SBUCK_FLASK_ID);
const reserve = object.fields.reserves;
api.add(ADDRESSES.sui.BUCK, reserve);
}

module.exports = {
timetravel: false,
sui: {
tvl: tvl,
},
};

0 comments on commit 62b37a5

Please sign in to comment.