Skip to content

Conversation

@ZNSCTO
Copy link
Contributor

@ZNSCTO ZNSCTO commented Oct 23, 2025

NOTE
Please enable “Allow edits by maintainers”.

Follow-up to #4449 (prior work on CheapGM).

Name: CheapGM
Website: https://www.gm.cheap/
Twitter: https://x.com/gmcheap
Treasury address (same across EVMs): 0x21ad6eF3979638d8e73747f22B92C4AadE145D82

Chains (in this adapter):
Ethereum, Base, Optimism, Arbitrum, BSC, Polygon, Avalanche, Scroll, Mantle, Linea,
Berachain, Core, Redstone, Unichain, Ink, Soneium, Plume Mainnet, Zora, Blast, Mode,
Metis, Ronin, Gnosis (xDai), Celo, Conflux, Lisk, ApeChain, X Layer, Botanix (BTNX),
BOB, Abstract, Zircuit, Morph, Manta Pacific, Ancient8, Klaytn (Kaia), Cronos, Xai, World Chain.

Methodology:
dailyRevenue = daily net inflow into the treasury 0x21ad… in each chain’s native token:
balance(endOfDay) − balance(startOfDay). Same-day outflows can zero the metric.
Gross dailyFees + (if any) supply-side splits will be added later via on-chain log parsing of our GMSent events and tx.value.

Notes:

  • No changes to lockfiles.

@llamabutler
Copy link

The CheapGM adapter exports:

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

🦙 Running CHEAPGM adapter 🦙
---------------------------------------------------
Start Date:	Wed, 22 Oct 2025 15:15:59 GMT
End Date:	Thu, 23 Oct 2025 15:15:59 GMT
---------------------------------------------------

Error: Invalid chain labels: undefined
    at _runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:139:11)
    at runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:92:29)
    at /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:69:40
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

@llamabutler
Copy link

The CheapGM adapter exports:

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

🦙 Running CHEAPGM adapter 🦙
---------------------------------------------------
Start Date:	Wed, 22 Oct 2025 15:24:19 GMT
End Date:	Thu, 23 Oct 2025 15:24:19 GMT
---------------------------------------------------

chain         | Daily revenue | Start Time
---           | ---           | ---       
ethereum      | 0             | 11/8/2025 
base          | 0             | 11/8/2025 
optimism      | 0             | 11/8/2025 
arbitrum      | 0             | 11/8/2025 
bsc           | 0             | 11/8/2025 
polygon       | 0             | 11/8/2025 
avax          | 0             | 11/8/2025 
scroll        | 0             | 11/8/2025 
mantle        | 0             | 11/8/2025 
linea         | 0             | 11/8/2025 
berachain     | 0             | 11/8/2025 
core          | 0             | 11/8/2025 
redstone      | 0             | 11/8/2025 
unichain      | 0             | 11/8/2025 
ink           | 0             | 11/8/2025 
soneium       | 0             | 11/8/2025 
plume_mainnet | 0             | 11/8/2025 
zora          | 0             | 11/8/2025 
blast         | 0             | 11/8/2025 
mode          | 0             | 11/8/2025 
metis         | 0             | 11/8/2025 
ronin         | 0             | 11/8/2025 
xdai          | 0             | 11/8/2025 
celo          | 0             | 11/8/2025 
conflux       | 0             | 11/8/2025 
lisk          | 0             | 11/8/2025 
apechain      | 0             | 11/8/2025 
xlayer        | 0             | 11/8/2025 
btnx          | 0             | 11/8/2025 
bob           | 0             | 11/8/2025 
abstract      | 0             | 11/8/2025 
zircuit       | 0             | 11/8/2025 
morph         | 0             | 11/8/2025 
manta         | 0             | 11/8/2025 
ancient8      | 0             | 11/8/2025 
klaytn        | 0             | 11/8/2025 
cronos        | 0             | 11/8/2025 
Aggregate     | 0             |           

Added tx-scan fallback to avoid 0s when historical getBalance is unavailable; still reporting net inflow
@llamabutler
Copy link

The CheapGM adapter exports:

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

🦙 Running CHEAPGM adapter 🦙
---------------------------------------------------
Start Date:	Wed, 22 Oct 2025 15:33:01 GMT
End Date:	Thu, 23 Oct 2025 15:33:01 GMT
---------------------------------------------------

TypeError: opts.getTransactions is not a function
    at txNetInflow (/home/runner/work/dimension-adapters/dimension-adapters/fees/CheapGM/index.ts:30:27)
    at /home/runner/work/dimension-adapters/dimension-adapters/fees/CheapGM/index.ts:106:25
    at getChainResult (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:220:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 10)
    at async _runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:173:20)
    at async /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:69:24 {
  chain: 'berachain'
}

@llamabutler
Copy link

The CheapGM adapter exports:

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

🦙 Running CHEAPGM adapter 🦙
---------------------------------------------------
Start Date:	Wed, 22 Oct 2025 15:41:10 GMT
End Date:	Thu, 23 Oct 2025 15:41:10 GMT
---------------------------------------------------

chain         | Daily revenue | Start Time
---           | ---           | ---       
ethereum      | 0             | 11/8/2025 
base          | 0             | 11/8/2025 
optimism      | 0             | 11/8/2025 
arbitrum      | 0             | 11/8/2025 
bsc           | 0             | 11/8/2025 
polygon       | 0             | 11/8/2025 
avax          | 0             | 11/8/2025 
scroll        | 0             | 11/8/2025 
mantle        | 0             | 11/8/2025 
linea         | 0             | 11/8/2025 
berachain     | 0             | 11/8/2025 
core          | 0             | 11/8/2025 
redstone      | 0             | 11/8/2025 
unichain      | 0             | 11/8/2025 
ink           | 0             | 11/8/2025 
soneium       | 0             | 11/8/2025 
plume_mainnet | 0             | 11/8/2025 
zora          | 0             | 11/8/2025 
blast         | 0             | 11/8/2025 
mode          | 0             | 11/8/2025 
metis         | 0             | 11/8/2025 
ronin         | 0             | 11/8/2025 
xdai          | 0             | 11/8/2025 
celo          | 0             | 11/8/2025 
conflux       | 0             | 11/8/2025 
lisk          | 0             | 11/8/2025 
apechain      | 0             | 11/8/2025 
xlayer        | 0             | 11/8/2025 
btnx          | 0             | 11/8/2025 
bob           | 0             | 11/8/2025 
abstract      | 0             | 11/8/2025 
zircuit       | 0             | 11/8/2025 
morph         | 0             | 11/8/2025 
manta         | 0             | 11/8/2025 
ancient8      | 0             | 11/8/2025 
klaytn        | 0             | 11/8/2025 
cronos        | 0             | 11/8/2025 
Aggregate     | 0             |           

@llamabutler
Copy link

The CheapGM adapter exports:

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

🦙 Running CHEAPGM adapter 🦙
---------------------------------------------------
Start Date:	Wed, 22 Oct 2025 17:58:42 GMT
End Date:	Thu, 23 Oct 2025 17:58:42 GMT
---------------------------------------------------

chain         | Daily fees | Daily revenue | Start Time
---           | ---        | ---           | ---       
ethereum      | 0          | 0             | 11/8/2025 
base          | 5          | 5             | 11/8/2025 
optimism      | 1          | 1             | 11/8/2025 
arbitrum      | 0          | 0             | 11/8/2025 
bsc           | 0          | 0             | 11/8/2025 
polygon       | 0          | 0             | 11/8/2025 
avax          | 0          | 0             | 11/8/2025 
scroll        | 0          | 0             | 11/8/2025 
mantle        | 0          | 0             | 11/8/2025 
linea         | 1          | 1             | 11/8/2025 
berachain     | 0          | 0             | 11/8/2025 
core          | 0          | 0             | 11/8/2025 
redstone      | 0          | 0             | 11/8/2025 
unichain      | 8          | 8             | 11/8/2025 
ink           | 6          | 6             | 11/8/2025 
soneium       | 18         | 18            | 11/8/2025 
plume_mainnet | 0          | 0             | 11/8/2025 
zora          | 0          | 0             | 11/8/2025 
blast         | 0          | 0             | 11/8/2025 
mode          | 0          | 0             | 11/8/2025 
metis         | 0          | 0             | 11/8/2025 
ronin         | 0          | 0             | 11/8/2025 
xdai          | 0          | 0             | 11/8/2025 
celo          | 0          | 0             | 11/8/2025 
conflux       | 0          | 0             | 11/8/2025 
lisk          | 0          | 0             | 11/8/2025 
apechain      | 0          | 0             | 11/8/2025 
xlayer        | 0          | 0             | 11/8/2025 
btnx          | 0          | 0             | 11/8/2025 
bob           | 0          | 0             | 11/8/2025 
abstract      | 0          | 0             | 11/8/2025 
zircuit       | 0          | 0             | 11/8/2025 
morph         | 0          | 0             | 11/8/2025 
manta         | 0          | 0             | 11/8/2025 
ancient8      | 0          | 0             | 11/8/2025 
klaytn        | 0          | 0             | 11/8/2025 
cronos        | 0          | 0             | 11/8/2025 
sonic         | 0          | 0             | 11/8/2025 
taiko         | 0          | 0             | 11/8/2025 
polygon_zkevm | 0          | 0             | 11/8/2025 
Aggregate     | 39         | 39            |           

@treeoflife2 treeoflife2 self-assigned this Oct 27, 2025
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.

3 participants