Skip to content

feat: add TermMax protocol adapter for fee collection #3827

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tkspring-henry
Copy link

No description provided.

@llamabutler
Copy link

The termmax adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees termmax

🦙 Running TERMMAX adapter 🦙
---------------------------------------------------
Start Date:	Thu, 24 Jul 2025 04:49:03 GMT
End Date:	Fri, 25 Jul 2025 04:49:03 GMT
---------------------------------------------------

{
  llamaRPCError: true,
  errors: [
    {
      host: 'https://bsc-dataseed.binance.org',
      error: 'limit exceeded'
    },
    {
      host: 'https://bsc-dataseed2.defibit.io',
      error: 'limit exceeded'
    },
    {
      host: 'https://bsc-dataseed2.ninicoin.io',
      error: 'limit exceeded'
    },
    {
      host: 'https://bsc-dataseed2.ninicoin.io',
      error: 'limit exceeded'
    },
    { host: 'https://binance.nodereal.io', error: 'limit exceeded' },
    {
      host: 'https://endpoints.omniatech.io/v1/bsc/mainnet/public',
      error: 'limit exceeded'
    },
    {
      host: 'https://bsc-dataseed2.bnbchain.org',
      error: 'limit exceeded'
    }
  ],
  method: 'getLogs',
  chain: 'bsc'
}

@llamabutler
Copy link

The termmax adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees termmax

🦙 Running TERMMAX adapter 🦙
---------------------------------------------------
Start Date:	Thu, 24 Jul 2025 04:47:53 GMT
End Date:	Fri, 25 Jul 2025 04:47:53 GMT
---------------------------------------------------

0x82aF49447D8a07e3bd95BD0d56f35241523fBab1 0x000000000000000000000000000000000000000000000000000001213b1e4121
0x82aF49447D8a07e3bd95BD0d56f35241523fBab1 0x00000000000000000000000000000000000000000000000000000327a3dad896
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 0x000000000000000000000000000000000000000000000000000000000001d122
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 0x000000000000000000000000000000000000000000000000000000000002f2fc
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 0x000000000000000000000000000000000000000000000000000001734a252594
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 0x0000000000000000000000000000000000000000000000000000030ff4d5a074
{
  llamaRPCError: true,
  errors: [
    {
      host: 'https://bsc-dataseed.binance.org',
      error: 'limit exceeded'
    },
    {
      host: 'https://bsc-dataseed1.bnbchain.org',
      error: 'limit exceeded'
    },
    {
      host: 'https://bsc.therpc.io',
      error: 'History has been pruned for this block. To remove restrictions, order a dedicated full node here: https://www.allnodes.com/bnb/host'
    },
    {
      host: 'https://bsc-dataseed2.ninicoin.io',
      error: 'limit exceeded'
    },
    {
      host: 'https://bsc-dataseed4.ninicoin.io',
      error: 'limit exceeded'
    },
    {
      host: 'https://bsc-mainnet.public.blastapi.io',
      error: 'Request failed with status code 400'
    },
    {
      host: 'https://bsc.drpc.org',
      error: 'Request failed with status code 400'
    }
  ],
  method: 'getLogs',
  chain: 'bsc'
}

@llamabutler
Copy link

The termmax adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees termmax

🦙 Running TERMMAX adapter 🦙
---------------------------------------------------
Start Date:	Tue, 12 Aug 2025 05:38:03 GMT
End Date:	Wed, 13 Aug 2025 05:38:03 GMT
---------------------------------------------------

[Error: Multicall failed! 
 [chain: ethereum] [fail count: 1] [abi: function tokens() external view override returns (address fixedToken, address xToken, address gearingToken, address collateral, address debt)]  
    target: 0xE7f9C4086155476e093004A6890C913F2cf30b09 ] {
  _underlyingErrors: [
    'Error: could not decode result data (value="0x", info={ "method": "tokens", "signature": "tokens()" }, code=BAD_DATA, version=6.13.2)'
  ],
  _isCustomError: true,
  chain: 'ethereum'
}

@llamabutler
Copy link

The termmax adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees termmax

🦙 Running TERMMAX adapter 🦙
---------------------------------------------------
Start Date:	Tue, 12 Aug 2025 06:09:11 GMT
End Date:	Wed, 13 Aug 2025 06:09:11 GMT
---------------------------------------------------

[Error: Multicall failed! 
 [chain: ethereum] [fail count: 1] [abi: function tokens() external view returns (address fixedToken, address xToken, address gearingToken, address collateral, address debt)]  
    target: 0xE7f9C4086155476e093004A6890C913F2cf30b09 ] {
  _underlyingErrors: [
    'Error: could not decode result data (value="0x", info={ "method": "tokens", "signature": "tokens()" }, code=BAD_DATA, version=6.13.2)'
  ],
  _isCustomError: true,
  chain: 'ethereum'
}

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