Skip to content

ZEROBASE adaptor for DeFiLama #14832

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 9 commits into from
Jun 3, 2025
Merged

ZEROBASE adaptor for DeFiLama #14832

merged 9 commits into from
Jun 3, 2025

Conversation

asilbek-0311
Copy link
Contributor

@asilbek-0311 asilbek-0311 commented May 28, 2025

NOTE

Please enable "Allow edits by maintainers" while putting up the PR.


  • If you would like to add a volume adapter please submit the PR here.
  • If you would like to add a liquidations adapter, please refer to this readme document for details.
  1. Once your adapter has been merged, it takes time to show on the UI. If more than 24 hours have passed, please let us know in Discord.
  2. Sorry, We no longer accept fetch adapter for new projects, we prefer the tvl to computed from blockchain data, if you have trouble with creating a the adapter, please hop onto our discord, we are happy to assist you.
  3. Please fill the form below only if the PR is for listing a new protocol else it can be ignored/replaced with reason/details about the PR
  4. For updating listing info It is a different repo, you can find your listing in this file: https://github.com/DefiLlama/defillama-server/blob/master/defi/src/protocols/data2.ts, you can edit it there and put up a PR
  5. Do not edit/push package-lock.json file as part of your changes, we use lockfileVersion 2, and most use v1 and using that messes up our CI
  6. No need to go to our discord and announce that you've created a PR, we monitor all PRs and will review it asap

Name (to be shown on DefiLlama): ZEROBASE CeDeFi
Twitter Link: x.com/zerobasezk
List of audit links if any:

PeckShield Audit Report: https://github.com/peckshield/publications/blob/master/audit_reports/PeckShield-Audit-Report-ZeroBase-Vault-v1.0.pdf
Salus Audit Report: https://github.com/Salusec/Salus-audit/blob/main/2024/ZeroBase_report_2024-12-24.pdf

Website Link: https://app.zerobase.pro/
Logo (High resolution, will be shown with rounded borders):

ZEROBASE_icon

Current TVL: 36M
Treasury Addresses (if the protocol has treasury)
Chain:

ethereum, avax, bsc, arbitrum, polygon, base, optimism

Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): (https://api.coingecko.com/api/v3/coins/list)
Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed): (https://api.coinmarketcap.com/data-api/v3/map/all?listing_status=active,inactive,untracked&start=1&limit=10000)
Short Description (to be shown on DefiLlama):

ZEROBASE introduces the first zk-powered staking product on stablecoins.

Token address and ticker if any:
Category (full list at https://defillama.com/categories) *Please choose only one:

Basis trading

Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.):
Implementation Details: Briefly describe how the oracle is integrated into your project:
Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage:
forkedFrom (Does your project originate from another project):
methodology (what is being counted as tvl, how is tvl being calculated):

For each chain: call getTVL(token) on its vault and sum per‐token amounts.

Github org/user (Optional, if your code is open source, we can track activity):

@llamabutler
Copy link

The adapter at projects/ZEROBASE exports TVL:

bsc                       8.17 M
arbitrum                  4.60 M
base                      1.22 M
polygon                   778.98 k
ethereum                  774.56 k
avax                      72.64 k
optimism                  45.18 k

total                    15.66 M 

@0xpeluche 0xpeluche self-assigned this May 28, 2025
@Define101
Copy link
Member

@asilbek-0311 Hello.
This fits under the basis trading category.
Could you please confirm which custodian you are currently using? Additionally, we would appreciate it if you could share details of all the wallets involved in the process. Our assumption is that there may be commingled wallets as well as a final destination wallet, which makes it difficult for us to independently verify the flow of funds

@Define101
Copy link
Member

The wallets for all this chains
image

@asilbek-0311
Copy link
Contributor Author

Thank you for your prompt response! Here are my answers to your questions, one by one:

We use Ceffu as our custodian.

Since Ceffu does not support deposits on L2s such as Arbitrum, Optimism, and BASE, we use ZEROBASE’s Binance account as an intermediate account and hot wallet/buffer pool. The process is as follows: users stake their funds into the following vault contracts:

ETH
Vault Contract: 0x9eF52D8953d184840F2c69096B7b3A7dA7093685

AVAX-C
Vault Address: 0xC3e9006559cB209a987e99257986aA5Ce324F829

BSC, ARB, Polygon, OP, BASE
Vault Contract: 0xCc5Df5C68d8c991035B6A437D4e00A99875228E4

Once funds on each chain reach a certain threshold, they are transferred to the ZEROBASE Binance address (multi-chain):
0xd038213a84a86348d000929c115528ae9ddc1158

Then, they are moved to the Ceffu address:
BEP20: 0x1ea0f3315a80dc736788ff0f6d2fe1912ec4a85d

Previously used aggregation addresses (now deprecated):

TRC20: TQrfy2ty4t17SAZTb5WTLRrDPPrRoo4Aw3

BEP20: 0x430743877a540234f527e2d547d744a18124920a

Fund aggregation logic:
Since we support multiple chains, all addresses are active and used accordingly.

Regarding the parsed data being smaller than 36M:
ZEROBASE underwent a contract upgrade from V1 to V2, during which some whale users did not receive LP Token allocations. We will address this issue soon, but for now, please proceed based on the data currently available.

@asilbek-0311
Copy link
Contributor Author

Hello @Define101
is the information sufficient

@llamabutler
Copy link

The adapter at projects/ZEROBASE exports TVL:

bsc                       8.15 M
arbitrum                  4.58 M
base                      1.22 M
ethereum                  778.80 k
polygon                   739.02 k
avax                      72.69 k
optimism                  35.33 k

total                    15.58 M 

@0xpeluche
Copy link
Contributor

All good, I refactored the code a bit, thanks for the PR!

@0xpeluche 0xpeluche merged commit e1d7ebf 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.

4 participants