Skip to content

Conversation

@samgaib
Copy link
Contributor

@samgaib samgaib commented Nov 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 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:

Primary TVL (AIDa Pools): $202.03M

The adapter tracks three separate metrics displayed on DefiLlama:

  1. TVL - Legacy AIDa (Alpha) Pools: $202.03M (across all chains)

    • Ethereum: $169.09M
    • Sei: $15.01M
    • Arbitrum: $9.84M
    • BSC: $5.00M
    • Base: $3.10M
    • Story: $1,173
  2. Own Tokens - AID.v0 Total Supply: $45.71M (across all chains)

  3. Staking - sAID.v0 (AID Staked): $41.35M (Ethereum only)

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

Ethereum, Arbitrum, Base, Sei, Story, BSC

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:

Core Tokens:

  • AID.v0 (All Chains): 0x18F52B3fb465118731d9e0d276d4Eb3599D57596 - Supply: 45.71M
  • sAID.v0 (Ethereum only): 0xB3B3c527BA57cd61648e2EC2F5e006A0B390A9F8 - Staked: 41.35M

Ethereum Pools (Token/Pool Addresses):

  • AIDaUSDC: 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42 (token), Pool: 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42
  • AIDaUSDT: 0xDc45e7027A0489FE6C2E4A0735097d8E6952A340 (token), Pool: 0xDc45e7027A0489FE6C2E4A0735097d8E6952A340
  • USR: 0x66a1E37c9b0eAddca17d3662D6c05F4DECf3e110 (token), Pool: 0x5D976F56343e33A6a4d6e26AF7d59358d1359dd4
  • cUSDO: 0xaD55aebc9b8c03FC43cd9f62260391c13c23e7c0 (token), Pool: 0x17D02bCA29BD9E8cF4A39B25C9C902e6bF00AA54

Arbitrum Pools (Token/Pool Addresses):

  • USDC: Pool 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42
  • USDT: Pool 0xDc45e7027A0489FE6C2E4A0735097d8E6952A340

Base Pools (Token/Pool Addresses):

  • USDC: Pool 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42

Sei Pools (Token/Pool Addresses):

  • USDC: 0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392 (token), Pool: 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42
  • USDT: 0x9151434b16b9763660705744891fA906F660EcC5 (token), Pool: 0xDc45e7027A0489FE6C2E4A0735097d8E6952A340

Story Pools (Token/Pool Addresses):

  • USDC: 0xF1815bd50389c46847f0Bda824eC8da914045D14 (token), Pool: 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42

BSC Pools (Token/Pool Addresses):

  • USD1: 0x8d0D000Ee44948FC98c9B98A4FA4921476f08B0d (token), Pool: 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42
  • USDT: 0x55d398326f99059ff775485246999027b3197955 (token), Pool: 0xDc45e7027A0489FE6C2E4A0735097d8E6952A340
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, Base, Sei, Story, and BSC. Values are pulled on-chain via multicall to GAIB smart contracts using the totalAssets() function, providing real-time TVL calculations across all supported chains and pool contracts.

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 tracks three main components:

  1. Legacy AIDa (Alpha) Pool TVL - Uses totalAssets() function to query on-chain TVL balances from protocol-managed pool contracts
  2. AID.v0 Total Supply - Tracks AID totalSupply)() across Ethereum, Base, Arbitrum and BSC
  3. AID Staking - Tracks AID staked in sAID.v0 contract (Ethereum only)

Core Tokens:

  • AID.v0: 0x18F52B3fb465118731d9e0d276d4Eb3599D57596 (All Chains) - Supply: 45.71M
  • sAID.v0: 0xB3B3c527BA57cd61648e2EC2F5e006A0B390A9F8 (Ethereum only) - Staked AID: 41.35M

Pool Configurations:

Ethereum Pools (Token/Pool Addresses):

  • AIDaUSDC: Token 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42, Pool 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42
  • AIDaUSDT: Token 0xDc45e7027A0489FE6C2E4A0735097d8E6952A340, Pool 0xDc45e7027A0489FE6C2E4A0735097d8E6952A340
  • USR: Token 0x66a1E37c9b0eAddca17d3662D6c05F4DECf3e110, Pool 0x5D976F56343e33A6a4d6e26AF7d59358d1359dd4
  • cUSDO: Token 0xaD55aebc9b8c03FC43cd9f62260391c13c23e7c0, Pool 0x17D02bCA29BD9E8cF4A39B25C9C902e6bF00AA54

Arbitrum Pools (Pool Addresses):

  • USDC: Pool 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42
  • USDT: Pool 0xDc45e7027A0489FE6C2E4A0735097d8E6952A340

Base Pools (Pool Addresses):

  • USDC: Pool 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42

Sei Pools (Token/Pool Addresses):

  • USDC: Token 0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392, Pool 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42
  • USDT: Token 0x9151434b16b9763660705744891fA906F660EcC5, Pool 0xDc45e7027A0489FE6C2E4A0735097d8E6952A340

Story Pools (Token/Pool Addresses):

  • USDC: Token 0xF1815bd50389c46847f0Bda824eC8da914045D14, Pool 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42

BSC Pools (Token/Pool Addresses):

  • USD1: Token 0x8d0D000Ee44948FC98c9B98A4FA4921476f08B0d, Pool 0xd5255Cc08EBAf6D54ac9448822a18d8A3da29A42
  • USDT: Token 0x55d398326f99059ff775485246999027b3197955, Pool 0xDc45e7027A0489FE6C2E4A0735097d8E6952A340

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

const totalAssetsABI = "function totalAssets() external view returns (uint256)";

async function aidaTvl(api) {
    const chain = api.chain;
    const pools = aidaContracts[chain];

    if (pools && pools.length > 0) {
        const totalAssetsAmounts = await api.multiCall({
            abi: totalAssetsABI,
            calls: pools.map(p => p.poolToken),
        });

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

    return api.getBalances();
}

// AID total supply on chain
async function aidSupply(api) {
    const supply = await api.call({
        abi: "function totalSupply() external view returns (uint256)",
        target: AID_TOKEN,
    });
    api.add(`ethereum:${AID_TOKEN}`, supply, { skipChain: true });
    return api.getBalances();
}

// AID staked in sAID contract (Ethereum only)
async function saidStaking(api) {
    const stakedAid = await api.call({
        abi: "function balanceOf(address) external view returns (uint256)",
        target: AID_TOKEN,
        params: [SAID_TOKEN],
    });
    api.add(`ethereum:${AID_TOKEN}`, stakedAid, { skipChain: true });
    return api.getBalances();
}

Adapter Exports:

  • ethereum: tvl (aidaTvl), ownTokens (aidSupply), staking (saidStaking)
  • arbitrum: tvl (aidaTvl), ownTokens (aidSupply)
  • base: tvl (aidaTvl), ownTokens (aidSupply)
  • bsc: tvl (aidaTvl), ownTokens (aidSupply)
  • sei: tvl (aidaTvl)
  • sty (Story): tvl (aidaTvl)

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

@llamabutler
Copy link

The adapter at projects/gaib exports TVL:

ethereum                  169.08 M
ownTokens                 45.71 M
ethereum-ownTokens        45.57 M
ethereum-staking          41.40 M
staking                   41.40 M
sei                       15.01 M
arbitrum                  9.84 M
bsc                       5.00 M
base                      3.10 M
base-ownTokens            58.89 k
bsc-ownTokens             57.63 k
arbitrum-ownTokens        30.13 k
sty                       1.17 k

total                    202.03 M 

@waynebruce0x
Copy link
Collaborator

Can we count the assets backing AID rather than using totalSupply?

const underlyingToken = poolsForChain[index].token;
api.add(underlyingToken, amount);
// AID staked in sAID contract (Ethereum only)
async function saidStaking(api) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please dont count sAID, its double count of the AID TVL

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated thanks

@waynebruce0x waynebruce0x self-assigned this Nov 28, 2025
@llamabutler
Copy link

The adapter at projects/gaib exports TVL:

ethereum                  169.10 M
ownTokens                 45.29 M
ethereum-ownTokens        45.14 M
ethereum-staking          41.41 M
staking                   41.41 M
sei                       15.01 M
arbitrum                  9.84 M
bsc                       5.00 M
base                      3.10 M
base-ownTokens            58.82 k
bsc-ownTokens             57.76 k
arbitrum-ownTokens        29.98 k
sty                       1.18 k

total                    202.06 M 

@llamabutler
Copy link

The adapter at projects/gaib exports TVL:

ethereum                  169.10 M
ownTokens                 45.29 M
ethereum-ownTokens        45.14 M
sei                       15.01 M
arbitrum                  9.84 M
bsc                       5.00 M
base                      3.10 M
base-ownTokens            58.82 k
bsc-ownTokens             57.76 k
arbitrum-ownTokens        29.98 k
sty                       1.18 k

total                    202.06 M 

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