fix(web): real on-chain trading + honest 5s K-line

- TradingTerminal: allowance precheck (approve only when needed), exact OT estimation via calMintCostByOtDelta aligned to tick, real revert reason decoding, SELL requires OT balance
- TradingViewChart: priceRef to avoid stale closure, no synthetic candles, 5s heartbeat with real marginal price
- point default market to real WTFMarketV2 (0x048E..9039) instead of controller proxy
This commit is contained in:
Bot
2026-08-31 02:41:10 +08:00
parent 13c44afc51
commit 7f3c6a3775
5 changed files with 343 additions and 163 deletions
+2 -1
View File
@@ -8,7 +8,8 @@
"powerLDACurve": "0xF0E189974c413506098AFB6Bc6Bf4C6715fBf7B1",
"controllerImplementation": "0x2Aeca49669e9E4E6CdCe46A1bc9bf136765A4f75",
"controllerProxy": "0xc0E24E152771C588B21AEB654b30B1cBAf381c1a",
"vaultFactory": "0x89401e07296267c01017cA150D5Ec8883a78e0B2"
"vaultFactory": "0x89401e07296267c01017cA150D5Ec8883a78e0B2",
"defaultMarket": "0x048E9a90C25ba2c4410425D282b19A472e076039"
},
"governance": {
"admin": "0x6cddF384792C77219fc25C454Cfe264757842830",