You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix naming: bitflow-arb-receiver -> bitflow-arb-receiver-v4 throughout
The confirmed M1 tx (0xabd33fc4) used bitflow-arb-receiver-v4. Update
README, monitor script, and all docs to reference the correct deployed
contract name. Also update test count (82) and testing guide date.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| 2 | sBTC | Test receiver — canonical sBTC borrowed and repaid atomically |[View](https://explorer.hiro.so/txid/0x67f0c77d9d7ab9762c08a3638ba0990d5bbc3d19db8adc1a0d616cd7170f9baa?chain=mainnet)|
86
86
| 3 | sBTC | Test receiver — executed via production frontend UI |[View](https://explorer.hiro.so/txid/0xc9d8e86f5ffcfc61537a25d6108a4b8ac0cf075568027a878cf2e9bcf6d53b4e?chain=mainnet)|
Live example to read: [contracts/bitflow-arb-receiver.clar](../contracts/bitflow-arb-receiver.clar) and [contracts/alex-arb-receiver.clar](../contracts/alex-arb-receiver.clar).
135
+
Live example to read: [contracts/bitflow-arb-receiver.clar](../contracts/bitflow-arb-receiver.clar)(deployed as `bitflow-arb-receiver-v4` on mainnet) and [contracts/alex-arb-receiver.clar](../contracts/alex-arb-receiver.clar).
|`flashstack-stx-pool`| LP pool — anyone deposits STX, earns fees |[View](https://explorer.hiro.so/address/SP20XD46NGAX05ZQZDKFYCCX49A3852BQABNP0VG5.flashstack-stx-pool?chain=mainnet)|
30
30
|`stx-test-receiver`| Basic receiver — borrows and repays, no strategy |[View](https://explorer.hiro.so/address/SP20XD46NGAX05ZQZDKFYCCX49A3852BQABNP0VG5.stx-test-receiver?chain=mainnet)|
31
-
|`bitflow-arb-receiver`| DEX receiver — STX→stSTX→STX arb on Bitflow |[View](https://explorer.hiro.so/address/SP20XD46NGAX05ZQZDKFYCCX49A3852BQABNP0VG5.bitflow-arb-receiver?chain=mainnet)|
31
+
|`bitflow-arb-receiver-v4`| DEX receiver — STX→stSTX→STX arb on Bitflow |[View](https://explorer.hiro.so/address/SP20XD46NGAX05ZQZDKFYCCX49A3852BQABNP0VG5.bitflow-arb-receiver-v4?chain=mainnet)|
32
32
33
33
---
34
34
@@ -37,7 +37,7 @@ All active contracts are under deployer wallet `SP20XD46NGAX05ZQZDKFYCCX49A3852B
37
37
-**There is no testnet deployment.** All STX contract testing hits Stacks mainnet.
38
38
- The frontend at [flashstack.vercel.app](https://flashstack.vercel.app) is connected to mainnet. Flash loans are atomic — if the receiver fails to repay, the entire tx reverts and you lose only the Stacks tx fee (~0.001 STX, ~$0.001). No other funds are at risk.
39
39
- Do **not** run arbitrage scenarios via the UI without checking with Matt first — if the Bitflow spread is zero, the tx will revert cleanly but wastes gas.
40
-
- The `bitflow-arb-receiver` is whitelisted in `flashstack-stx-core`. Any new receiver contract you deploy must be approved via `add-approved-receiver` (admin-only) before it can borrow.
40
+
- The `bitflow-arb-receiver-v4` is whitelisted in `flashstack-stx-core`. Any new receiver contract you deploy must be approved via `add-approved-receiver` (admin-only) before it can borrow.
41
41
42
42
---
43
43
@@ -102,7 +102,7 @@ Call `get-reserve-balance` on `flashstack-stx-core`. The result must be ≥ your
Call `estimate-profit u10000000` on `bitflow-arb-receiver`. If it returns a positive number, the arb is live. If it returns 0 or errors, the spread is zero and the tx will revert — wait for a better moment.
151
+
Call `estimate-profit u10000000` on `bitflow-arb-receiver-v4`. If it returns a positive number, the arb is live. If it returns 0 or errors, the spread is zero and the tx will revert — wait for a better moment.
152
152
153
153
**What success looks like:**
154
154
- Transaction confirmed
@@ -179,15 +179,15 @@ These should all fail cleanly with no fund loss:
179
179
| Receiver | In scope | Notes |
180
180
|----------|----------|-------|
181
181
|`stx-test-receiver`| Yes — start here | Safe, always repays |
182
-
|`bitflow-arb-receiver`| Yes — main DEX test | Check `estimate-profit` first |
182
+
|`bitflow-arb-receiver-v4`| Yes — main DEX test | Check `estimate-profit` first |
183
183
|`arkadiko-liquidation-receiver`| Optional | Requires an undercollateralised Arkadiko vault |
184
184
| All sBTC receivers (`SP3TGRVG7...`) | No | Legacy — do not test |
185
185
186
186
---
187
187
188
188
## Clarinet / Local Tests
189
189
190
-
The 86 Clarinet tests in `tests/` cover the **sBTC path** on simnet. They are not relevant to STX testing.
190
+
The 82 Clarinet tests in `tests/` cover the core protocol on simnet.
191
191
192
192
There is no Clarinet setup for the STX contracts because the core dependency (`SP3TGRVG7...stx-flash-receiver-trait`) is a mainnet-deployed contract that Clarinet cannot resolve locally. STX contract testing is mainnet-only until a testnet deployment is set up.
0 commit comments