Skip to content

projects(silverswap): Nibiru has a SilverSwap deployment on mainnet #14889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2025

Conversation

Unique-Divine
Copy link
Contributor

@Unique-Divine Unique-Divine commented Jun 2, 2025

Purpose

  1. SilverSwap is live on Nibiru mainnet. This pull request seeks to add the factory address and use the Algebra and Uniswap V3 helper.

Background Context (Less Relevant Now)

  1. ✅ Initially blocked by the below issue with a missing chain ID for "nibiru", however this was resolved in @defillama/sdk v5.0.143. DeFiLlama correctly shows a chain ID 6900 for "nibiru" now.
    node test.js projects/silverswap/index.js 2>&1

[Info on the Prior Blocker with the Missing Chain ID in the DeFiLLama SDK]

Several TVL Adapters are blocked by chain "nibiru":

  1. Missing its chainId field on the ChainApi (api) object, and
  2. Having the default value of 400069 as the chainId on the LlamaProvider

This can be seen from console logging the api object in the downstream repos.
For example, this is from the uniV3Export helper in the adapters repo:

// DEBUG uniV3Export forEach 
{
  chain: 'nibiru',
  fromBlock: 19674297,
  api: <ref *1> ChainApi {
    block: undefined,
    chain: 'nibiru',
    timestamp: 1747982188,
    provider: LlamaProvider {
      quorum: 1,
      eventQuorum: 1,
      eventWorkers: 1,
      isCustomLlamaProvider: true,
      rpcs: [
        {
          url: 'https://evm-rpc.nibiru.fi',
          provider: JsonRpcProvider {}
        },
        [length]: 1
      ],
      archivalRPCs: [ [length]: 0 ],
      chainName: 'nibiru',
      chainId: 400069,
      _isReady: Promise { undefined },
      [providerConfigs]: [Getter],
      [pollingInterval]: [Getter],
      [provider]: [Getter],
      [plugins]: [Getter],
      [disableCcipRead]: [Getter/Setter],
      [destroyed]: [Getter],
      [paused]: [Getter/Setter]
    },
    _balances: Balances { chain: 'nibiru', timestamp: 1747982188, _balances: {} },
    chainId: undefined,
    storedKey: 'nibiru',
    api: [Circular *1]
  }
}: 

@noateden noateden self-assigned this Jun 2, 2025
@noateden
Copy link
Contributor

noateden commented Jun 2, 2025

hi @Unique-Divine, still can not get data from nibiru chain rpc, pls check

@Unique-Divine
Copy link
Contributor Author

Unique-Divine commented Jun 3, 2025

hi @Unique-Divine, still can not get data from nibiru chain rpc, pls check

Yes, I see also from #14893 that it's from some error that happens inside of eth_getLogs. I'm working on debugging the problem now since it affects a lot of adapters projects are trying to create for apps on Nibiru

@noateden, I looked into this more closely and found that the error in eth_getLogs is related to node pruning settings. When I manually override Nibiru's RPC to be an archive node endpoint, all of the errors go away. Can you advise on what needs to be updated to have DeFiLlama reference an archive node for requests that look this far back into the history? - #14893 (comment)

@noateden noateden merged commit d37eeba into DefiLlama:main Jun 3, 2025
1 check passed
brentstone added a commit to heliaxdev/DefiLlama-Adapters that referenced this pull request Jun 6, 2025
* 'main' of github.com:DefiLlama/DefiLlama-Adapters: (164 commits)
  add gate wallets (DefiLlama#14961)
  Add adapter for nebula on nibiru (DefiLlama#14924)
  ci fix (DefiLlama#14957)
  DegenPrime - Add new lending pools and tokens (DefiLlama#14951)
  *bugfix: remove doublecount
  bugfix
  Bitkub lending (DefiLlama#14949)
  add aave on soneium (DefiLlama#14947)
  track aave umbrella
  Update Concrete (DefiLlama#14944)
  clean-up
  Trading strategy (DefiLlama#14943)
  update @defillama/sdk
  fix ens
  fix bug
  Add Marinade Select tvl adapter (DefiLlama#14928)
  Support Spark Liquidity Layer on Optimism and Unichain (DefiLlama#14938)
  update adapters on nibiru chains (DefiLlama#14940)
  Added missing Corn coreAssets to fix Uniswap TVL (DefiLlama#14930)
  update nibiru rpc
  Add new pools (DefiLlama#14925)
  feat: add luckystake adapter (DefiLlama#14919)
  keep old contracts for now (DefiLlama#14937)
  feat: batch listing (DefiLlama#14927)
  Add Swirl Liquid Staking Protocol (DefiLlama#14904)
  add X3X on World Chain (DefiLlama#14929)
  Add new Hydration adapters (DefiLlama#14923)
  add benji
  update lock version
  code refactor
  code refactor
  Optimize unicrypt + pinksale (DefiLlama#14922)
  Fix aptos Fungible helper (DefiLlama#14918)
  add indxs.app (DefiLlama#14915)
  Add granite (DefiLlama#14917)
  Amped sseed (DefiLlama#14916)
  Add files via upload (DefiLlama#14899)
  Add stellar tvl (DefiLlama#14646)
  add unichain morpho vaults for curators (DefiLlama#14911)
  temp disable nibiru adapters (DefiLlama#14910)
  projects(uniswap): add Uniswap deployment on Nibiru (DefiLlama#14890)
  projects(silverswap): Nibiru has a SilverSwap deployment on mainnet (DefiLlama#14889)
  kamino lend - borrows (DefiLlama#14909)
  ZEROBASE adaptor for DeFiLama (DefiLlama#14832)
  feat: Add fungible support aptos (DefiLlama#14905)
  up vestingHelper limit for bsc (DefiLlama#14903)
  feat(satlayer): add BOB to `satlayer` tvl (DefiLlama#14900)
  Add milkINIT TVL for MilkyWay (DefiLlama#14902)
  [Bucket]" add xBTC collateral (DefiLlama#14897)
  add v2 liquidity and plume (DefiLlama#14824)
  Update ExtraFi Xlend TVL to include Morpho Vaults (DefiLlama#14886)
  stability: keep old markets and adapter name (DefiLlama#14892)
  disable pool2, add hallmark (DefiLlama#14898)
  [Update] desyn add goat chain  (DefiLlama#14896)
  Add Tokenized Balance Sheet Vaults for Origami (DefiLlama#14895)
  fix cex usdt aptos (DefiLlama#14894)
  Add Dre Finance (DefiLlama#14883)
  Fix Sei TVL + Add Sonic TVL (DefiLlama#14368)
  New OTTV contract (DefiLlama#14875)
  Add new berancia vaults (DefiLlama#14877)
  symbiosis add hyper evm support (DefiLlama#14887)
  remove dup vaults (DefiLlama#14888)
  fix aptos token (DefiLlama#14884)
  add price usdt aptos (DefiLlama#14882)
  Smardex / USDN: Use recipient as owner of the position (DefiLlama#14881)
  Catex/unichain migration (DefiLlama#14859)
  remove dai blacklist (DefiLlama#14880)
  Fix Moar TVL calculation (DefiLlama#14879)
  add hallmarks tracking on starknet (DefiLlama#14878)
  dynamic get vaults lists (DefiLlama#14869)
  Update: D2Finance (DefiLlama#14876)
  Sui Rewards Me - Project Listing resubmission with requested updates (DefiLlama#14874)
  Add aptos address of flipster (DefiLlama#14872)
  disable historical queries (DefiLlama#14871)
  update curator tvl sources (DefiLlama#14870)
  add iteration 2 pools (DefiLlama#14862)
  fix: Add Credbull Plume TVL.  Map Plume Stargate USDC.e. (DefiLlama#14861)
  update sdk to latest version (DefiLlama#14866)
  feat: update milkBABY and add milkINIT commented out because of issues (DefiLlama#14767)
  add wstASTR vault (DefiLlama#14864)
  Fix: Wasabi, dedup + bera (DefiLlama#14865)
  fix ironbank
  feature: add Arkis Wrapped Hype Vault to Arkis adapter (DefiLlama#14796)
  doublecount protocols first batch (DefiLlama#14705)
  Update olab (DefiLlama#14860)
  correct native token mappings where possible (DefiLlama#14850)
  Add new berancia vaults (DefiLlama#14855)
  Ensuro: adds Compound Blue (compUSDC) to the TVL calculation (DefiLlama#14851)
  fix: Swissborg - Use cosmos addresses instead of evm (DefiLlama#14858)
  Commit Hybra V2 (DefiLlama#14854)
  addresses fixed (DefiLlama#14853)
  Curve: track hyperliquid (DefiLlama#14852)
  fix concentrated pool recognition (DefiLlama#14849)
  code cleanup
  chore: add yearn curating vaults (DefiLlama#14845)
  code cleanup
  migrate coin mapping
  Saros Dlmm (DefiLlama#14847)
  add Jiko (DefiLlama#14843)
  code refactor
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants