Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: DefiLlama/DefiLlama-Adapters
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: 0xSpaceShard/DefiLlama-Adapters
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 8 commits
  • 2 files changed
  • 1 contributor

Commits on Jul 15, 2024

  1. add Nimbora yield-aggregator adapter

    0xSacha committed Jul 15, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    8212913 View commit details
  2. fix(api): change url

    0xSacha committed Jul 15, 2024
    Copy the full SHA
    98a5ccc View commit details
  3. Revert "fix(api): change url"

    This reverts commit 98a5ccc.
    0xSacha committed Jul 15, 2024
    Copy the full SHA
    bf58b55 View commit details
  4. fix(aggregator): change url

    0xSacha committed Jul 15, 2024
    Copy the full SHA
    e02bcaa View commit details
  5. Revert "fix(aggregator): change url"

    This reverts commit e02bcaa.
    0xSacha committed Jul 15, 2024
    Copy the full SHA
    8c6984d View commit details
  6. Update index.js

    0xSacha committed Jul 15, 2024
    Copy the full SHA
    1831321 View commit details

Commits on Nov 27, 2024

  1. Copy the full SHA
    2c50579 View commit details
  2. Add nimbora liquid staking

    0xSacha committed Nov 27, 2024
    Copy the full SHA
    dcf8f2f View commit details
Showing with 44 additions and 0 deletions.
  1. +20 −0 projects/nimbora_lst/erc4626abi.js
  2. +24 −0 projects/nimbora_lst/index.js
20 changes: 20 additions & 0 deletions projects/nimbora_lst/erc4626abi.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const ERC4626Abi = [
{
"name": "total_assets",
"type": "function",
"inputs": [],
"outputs": [
{
"type": "core::integer::u256"
}
],
"state_mutability": "view"
}
]

const ERC4626AbiMap = {}
ERC4626Abi.forEach(i => ERC4626AbiMap[i.name] = i)

module.exports = {
ERC4626AbiMap
}
24 changes: 24 additions & 0 deletions projects/nimbora_lst/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const {multiCall} = require("../helper/chain/starknet");
const ADDRESSES = require('../helper/coreAssets.json');
const { ERC4626AbiMap } = require('./erc4626abi')

const LiquidStakingData = [{
address: "0x076c4b7bb1ce744e4aae2278724adedd4906ab89998623fe1715877ecb583bde",
token: ADDRESSES.starknet.STRK
}]

async function tvl(api) {
const totalAssets = await multiCall({
calls: LiquidStakingData.map(c => c.address),
abi: ERC4626AbiMap.total_assets
});
api.addTokens(LiquidStakingData.map(c => c.token), totalAssets);
}

module.exports = {
doublecounted: true,
methodology: "The TVL is the total staked STRK managed by Nimbora Lst",
starknet: {
tvl,
},
};