From cd848b8984c9c5c5ac6ae2775c1071d63d7d83cb Mon Sep 17 00:00:00 2001 From: javiersuweijie Date: Tue, 13 Aug 2024 14:29:00 +0800 Subject: [PATCH] chore: burn all from exploiter acc --- app/upgrades/v2.12/upgrade.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/upgrades/v2.12/upgrade.go b/app/upgrades/v2.12/upgrade.go index dd089237..5d9c9566 100644 --- a/app/upgrades/v2.12/upgrade.go +++ b/app/upgrades/v2.12/upgrade.go @@ -38,13 +38,16 @@ func CreateUpgradeHandler( var addr sdk.AccAddress var multisigAddr sdk.AccAddress + var exploiter sdk.AccAddress if ctx.ChainID() == "phoenix-1" { addr = sdk.MustAccAddressFromBech32("terra1885dgdvn5u8sjfaefvr39arssaxgqmd29ht0aa") multisigAddr = sdk.MustAccAddressFromBech32("terra19yxffalxzu88n5lnj40trehpryemqsz7pnnwxp8v73hxz0rl2u9q5qqwh4") + exploiter = sdk.MustAccAddressFromBech32("terra1wrve5z5vsmrgy6ldcveq93aldr6wk3qmxavs4j") } else { addr = sdk.MustAccAddressFromBech32("terra1wd8tc98um0x6c9l46vhg00gudzgleefl6tvshd") multisigAddr = sdk.MustAccAddressFromBech32("terra1xduqpf6aah0nftppuez7upl6curmykl3cxdek4h5wacw7hn0fr9sr029ze") + exploiter = sdk.MustAccAddressFromBech32("terra1wrve5z5vsmrgy6ldcveq93aldr6wk3qmxavs4j") } if err := burnTokensFromAccount(ctx, k.StakingKeeper, k.BankKeeper, k.DistrKeeper, k.AccountKeeper, addr); err != nil { @@ -53,6 +56,9 @@ func CreateUpgradeHandler( if err := burnTokensFromAccount(ctx, k.StakingKeeper, k.BankKeeper, k.DistrKeeper, k.AccountKeeper, multisigAddr); err != nil { return nil, err } + if err := burnTokensFromAccount(ctx, k.StakingKeeper, k.BankKeeper, k.DistrKeeper, k.AccountKeeper, exploiter); err != nil { + return nil, err + } return mm.RunMigrations(ctx, cfg, vm) }