实测修正:交易对行去掉交易所名、互换损耗两位小数、读档时 DEX 侧池按新深度重设
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fe82395d32
commit
709339b00c
5 files changed
+13
-10
No files matched your search
@@ -1337,7 +1337,7 @@ internal static class Program
|
||||
var old = Market.CreateDefault(38);
|
||||
int i = old.Pools.FindIndex(x => x.Venue == Venue.Dex && x.Base == Assets.CRT);
|
||||
old.Pools[i] = Pool.Create(Venue.Dex, Assets.CRT, Assets.CRC, 0.95, 1000, Tuning.DexFee);
|
||||
old.UpgradeStablePools(38);
|
||||
old.UpgradeDexPools(38);
|
||||
Check(old.DexPool(Assets.CRT).Stable && Near(old.DexPool(Assets.CRT).Price, 0.95, 1e-9), "旧存档的池子升级后保持当前价");
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user