Mixer moves into the terminal's Web3 page as a sub-page
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
09a5cae69c
commit
be18078f69
4 files changed
+17
-8
No files matched your search
@@ -192,10 +192,11 @@ mixer.go,Deposit to mixer
|
||||
mixer.min,Deposits must be worth at least {0} credits.
|
||||
mixer.done,Deposited {0} {1}; back on day {2}.
|
||||
mixer.upgrade.title,Mixer
|
||||
mixer.upgrade.desc,"Unlocks the Mixer page in the terminal: deposit tainted coins, get them back days later with less taint. Cash-outs of freshly mixed coins are screened harder; during crackdowns the mixer may be sanctioned and coins withdrawn meanwhile are flagged."
|
||||
mixer.upgrade.desc,"Unlocks the mixer in the terminal's Web3 page: deposit tainted coins, get them back days later with less taint. Cash-outs of freshly mixed coins are screened harder; during crackdowns the mixer may be sanctioned and coins withdrawn meanwhile are flagged."
|
||||
news.sanction.title,Mixer put on sanctions list
|
||||
news.sanction.desc,"Security has sanctioned a batch of mixing services. Funds withdrawn from mixers in the next few days will be treated as suspicious."
|
||||
nightlog.mixer,Mixer returned {0} {1}; taint {2} -> {3}.
|
||||
nightlog.mixer_flag, (withdrawn during sanctions; address flagged)
|
||||
nightlog.mixer_rug,The mixer's operator ran off with it: {0} {1} never came back.
|
||||
tab.mixer,Mixer
|
||||
web3.sub.trade,Trade
|
||||
web3.sub.mixer,Mixer
|
||||
|
@@ -191,10 +191,11 @@ mixer.go,存入混币器
|
||||
mixer.min,存入价值不得低于 {0} 信用点。
|
||||
mixer.done,已存入 {0} {1},第 {2} 天提回。
|
||||
mixer.upgrade.title,混币器
|
||||
mixer.upgrade.desc,"解锁终端里的混币器页:把带污点的币存进去,几天后提回,污点降低。出金审查对刚从混币器出来的币更严格;镇压期间混币器可能被制裁,期间提出的币会被标记。"
|
||||
mixer.upgrade.desc,"解锁终端 Web3 页里的混币器:把带污点的币存进去,几天后提回,污点降低。出金审查对刚从混币器出来的币更严格;镇压期间混币器可能被制裁,期间提出的币会被标记。"
|
||||
news.sanction.title,混币器被列入制裁名单
|
||||
news.sanction.desc,"安保部门宣布制裁一批混币服务。此后几天从混币器提出的资金将被视为可疑。"
|
||||
nightlog.mixer,混币器提回 {0} {1},污点 {2} → {3}。
|
||||
nightlog.mixer_flag,(制裁期间提出,地址被标记)
|
||||
nightlog.mixer_rug,混币器的运营者卷款跑路了:{0} {1} 没有提回。
|
||||
tab.mixer,混币器
|
||||
web3.sub.trade,交易
|
||||
web3.sub.mixer,混币器
|
||||
|
@@ -13,7 +13,7 @@ namespace Decentralized
|
||||
public static class TerminalWindow
|
||||
{
|
||||
public const string Id = "pd_terminal";
|
||||
private enum Page { Home, Bank, Poinbase, Web3, Mixer, Report }
|
||||
private enum Page { Home, Bank, Poinbase, Web3, Report }
|
||||
|
||||
private static Page _page = Page.Home;
|
||||
private static string _amount = "";
|
||||
@@ -28,7 +28,6 @@ namespace Decentralized
|
||||
b.BeginRow();
|
||||
foreach (Page p in Enum.GetValues(typeof(Page)))
|
||||
{
|
||||
if (p == Page.Mixer && !Unlock.MixerUnlocked) continue;
|
||||
var page = p;
|
||||
string name = L.T("tab." + p.ToString().ToLowerInvariant());
|
||||
b.AddButton(page == _page ? $"[{name}]" : name, () => { _page = page; _message = null; Open(); });
|
||||
@@ -42,7 +41,6 @@ namespace Decentralized
|
||||
case Page.Bank: BankPage(b); break;
|
||||
case Page.Poinbase: ExchangePage(b, Venue.Exchange); break;
|
||||
case Page.Web3: Web3Page(b); break;
|
||||
case Page.Mixer: MixerPage(b); break;
|
||||
default: ReportPage(b); break;
|
||||
}
|
||||
b.End();
|
||||
@@ -237,6 +235,14 @@ namespace Decentralized
|
||||
private static void Web3Page(CustomUIBuilder b)
|
||||
{
|
||||
var w = Session.Data.Hot;
|
||||
if (Unlock.MixerUnlocked)
|
||||
{
|
||||
b.BeginRow();
|
||||
b.AddButton(_web3Mixer ? L.T("web3.sub.trade") : $"[{L.T("web3.sub.trade")}]", () => { _web3Mixer = false; _message = null; Open(); });
|
||||
b.AddButton(_web3Mixer ? $"[{L.T("web3.sub.mixer")}]" : L.T("web3.sub.mixer"), () => { _web3Mixer = true; _message = null; Open(); });
|
||||
b.End();
|
||||
if (_web3Mixer) { MixerPage(b); return; }
|
||||
}
|
||||
Columns(b, l =>
|
||||
{
|
||||
l.AddHeader(L.T("web3.wallet.h"));
|
||||
@@ -254,6 +260,7 @@ namespace Decentralized
|
||||
});
|
||||
}
|
||||
|
||||
private static bool _web3Mixer;
|
||||
private static string _mixAsset = Assets.PSC;
|
||||
private static int _mixRounds = 2;
|
||||
private static readonly float[] MixW = { 70f, 100f, 100f, 80f };
|
||||
|
||||
Reference in new issue
Block a user