Stage 9.2: mixer operator Tumbler storyline with key drive item
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
62bd641283
commit
a5f9639970
15 files changed
+386
-6
No files matched your search
@@ -1494,6 +1494,7 @@ namespace Decentralized
|
||||
}, r =>
|
||||
{
|
||||
r.AddHeader(L.T("mixer.deposit"));
|
||||
if (d.Story.MixerClosed) { r.AddLabel(L.T("mixer.closed")); return; }
|
||||
r.BeginRow();
|
||||
foreach (var a in new[] { Assets.PSC, Assets.CRC, Assets.CRT, Assets.CRA })
|
||||
{
|
||||
@@ -1514,7 +1515,7 @@ namespace Decentralized
|
||||
if (double.TryParse((_amount ?? "").Trim(), NumberStyles.Float, CultureInfo.InvariantCulture, out double v) && v > 0)
|
||||
{
|
||||
double rate = Mixer.RoundRate(v * Session.Price(_mixAsset));
|
||||
r.AddLabel(L.T("mixer.preview", Fmt.Num(v * Math.Pow(1 - Tuning.MixerFee, _mixRounds)), _mixAsset, (int)Math.Round((1 - Math.Pow(1 - rate, _mixRounds)) * 100), day + _mixRounds));
|
||||
r.AddLabel(L.T("mixer.preview", Fmt.Num(v * Math.Pow(1 - Mixer.Fee, _mixRounds)), _mixAsset, (int)Math.Round((1 - Math.Pow(1 - rate, _mixRounds)) * 100), day + _mixRounds));
|
||||
}
|
||||
r.AddButton(L.T("mixer.go"), () =>
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user