Skip to content

Add new chain and token in GAIB #16023

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 10 commits into from
Aug 22, 2025
Merged

Add new chain and token in GAIB #16023

merged 10 commits into from
Aug 22, 2025

Conversation

samgaib
Copy link
Contributor

@samgaib samgaib commented Aug 21, 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 be computed from blockchain data. If you have trouble with creating 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; 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):

GAIB

Twitter Link:

https://x.com/gaib_ai

List of audit links if any:

https://docs.gaib.ai/audits

Website Link:

https://gaib.ai

Logo (High resolution, will be shown with rounded borders):

logo

Current TVL:

$54M

Treasury Addresses (if the protocol has treasury):
Chain:

Ethereum, Arbitrum, Base, Sei, Story

Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed):

Pending listing

Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed):

Pending listing

Short Description (to be shown on DefiLlama):

GAIB is the economic layer transforming AI infrastructure investment by turning GPU-backed assets into yield-generating opportunities. Through AID, GAIB’s AI synthetic dollar, investors can seamlessly access the AI economy while earning real yield from AI-powered compute. Staking AID (sAID) provides passive income while maintaining liquidity, enabling broader participation in AI-driven financial markets. GAIB also powers AI infrastructure by providing capital solutions for cloud providers and data centers, optimizing their access to compute resources. With integrations across DeFi protocols, including lending, borrowing, and structured products, GAIB bridges AI and blockchain finance - unlocking new opportunities at the intersection of technology and investment.

Token address and ticker if any:

Ethereum Pools:

  • USDC: 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42
  • USDT: 0xDc45e7027A0489FE6C2E4A0735097d8E6952A340
  • USR: 0x5D976F56343e33A6a4d6e26AF7d59358d1359dd4
  • CUSDO: 0x17D02bCA29BD9E8cF4A39B25C9C902e6bF00AA54

Arbitrum Pools:

  • USDC: 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42
  • USDT: 0xDc45e7027A0489FE6C2E4A0735097d8E6952A340

Base Pools:

  • USDC: 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42

Sei Pools

  • USDC: 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42
  • USDT: 0xDc45e7027A0489FE6C2E4A0735097d8E6952A340

Story Pools

  • USDC: 0xF1815bd50389c46847f0Bda824eC8da914045D14
Category (full list at https://defillama.com/categories) *Please choose only one:

Commodities

Oracle Provider(s):
Implementation Details:
Documentation/Proof:

https://docs.gaib.ai/

forkedFrom (Does your project originate from another project):

Not a fork

methodology (what is being counted as tvl, how is tvl being calculated):

TVL includes all user-deposited collateral in GAIB vaults across Ethereum, Arbitrum, and Base. Values are pulled on-chain via multicall to GAIB smart contracts, priced using Chainlink oracles.

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

https://github.com/gaib-ai

Smart Contract Details (Adapter Implementation):

The GAIB adapter uses the totalAssets() function to query on-chain TVL balances from protocol-managed pool contracts on supported chains. Below are the configurations:

Ethereum Pools:

  • USDC: 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42
  • USDT: 0xDc45e7027A0489FE6C2E4A0735097d8E6952A340
  • USR: 0x5D976F56343e33A6a4d6e26AF7d59358d1359dd4
  • CUSDO: 0x17D02bCA29BD9E8cF4A39B25C9C902e6bF00AA54

Arbitrum Pools:

  • USDC: 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42
  • USDT: 0xDc45e7027A0489FE6C2E4A0735097d8E6952A340

Base Pools:

  • USDC: 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42

Sei Pools

  • USDC: 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42
  • USDT: 0xDc45e7027A0489FE6C2E4A0735097d8E6952A340

Story Pools

  • USDC: 0xF1815bd50389c46847f0Bda824eC8da914045D14

TVL Calculation:
The adapter uses the following approach to calculate TVL:

const totalAssetsABI = {
  "inputs": [],
  "name": "totalAssets",
  "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
  "stateMutability": "view",
  "type": "function"
};

async function tvl(api) {
  const poolsForChain = mainnetContracts[api.chain];
  const totalAssetsAmounts = await api.multiCall({
    abi: totalAssetsABI,
    calls: poolsForChain.map(p => ({ target: p.poolToken })),
  });

  totalAssetsAmounts.forEach((amount, index) => {
    const token = poolsForChain[index].token;
    api.add(token, amount);
  });

  return api.getBalances();
}

Supported chains: Ethereum, Arbitrum, Base, Sei, Story

@llamabutler
Copy link

The adapter at projects/gaib exports TVL:

ethereum                  42.64 M
sei                       10.01 M
base                      1.14 M
arbitrum                  918.74 k
sty                       10.93 k

total                    54.72 M 

@waynebruce0x waynebruce0x merged commit a1618e3 into DefiLlama:main Aug 22, 2025
1 check failed
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