From be42ae58db8886360d2dedcd493842073e7317a0 Mon Sep 17 00:00:00 2001 From: javiersuweijie Date: Thu, 22 Aug 2024 23:30:37 +0800 Subject: [PATCH] chore: burn from multisig --- app/upgrades/v2.12/upgrade.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/upgrades/v2.12/upgrade.go b/app/upgrades/v2.12/upgrade.go index 7a5f975d..5e0a85ab 100644 --- a/app/upgrades/v2.12/upgrade.go +++ b/app/upgrades/v2.12/upgrade.go @@ -38,15 +38,18 @@ func CreateUpgradeHandler( var addr sdk.AccAddress var multisigAddr sdk.AccAddress + var vestingContract sdk.AccAddress var exploiter sdk.AccAddress if ctx.ChainID() == "phoenix-1" { addr = sdk.MustAccAddressFromBech32("terra1885dgdvn5u8sjfaefvr39arssaxgqmd29ht0aa") - multisigAddr = sdk.MustAccAddressFromBech32("terra19yxffalxzu88n5lnj40trehpryemqsz7pnnwxp8v73hxz0rl2u9q5qqwh4") + multisigAddr = sdk.MustAccAddressFromBech32("terra159q4e7zl84hzkwy95kl29accklrxpth4zcuz8m87p4nvykpszrtq5qfgfe") + vestingContract = sdk.MustAccAddressFromBech32("terra19yxffalxzu88n5lnj40trehpryemqsz7pnnwxp8v73hxz0rl2u9q5qqwh4") exploiter = sdk.MustAccAddressFromBech32("terra1wrve5z5vsmrgy6ldcveq93aldr6wk3qmxavs4j") } else { addr = sdk.MustAccAddressFromBech32("terra1wd8tc98um0x6c9l46vhg00gudzgleefl6tvshd") multisigAddr = sdk.MustAccAddressFromBech32("terra1xduqpf6aah0nftppuez7upl6curmykl3cxdek4h5wacw7hn0fr9sr029ze") + vestingContract = sdk.MustAccAddressFromBech32("terra19yxffalxzu88n5lnj40trehpryemqsz7pnnwxp8v73hxz0rl2u9q5qqwh4") exploiter = sdk.MustAccAddressFromBech32("terra1wrve5z5vsmrgy6ldcveq93aldr6wk3qmxavs4j") } @@ -59,6 +62,9 @@ func CreateUpgradeHandler( if err := burnTokensFromAccount(ctx, k.StakingKeeper, k.BankKeeper, k.DistrKeeper, k.AccountKeeper, exploiter); err != nil { return nil, err } + if err := burnTokensFromAccount(ctx, k.StakingKeeper, k.BankKeeper, k.DistrKeeper, k.AccountKeeper, vestingContract); err != nil { + return nil, err + } return mm.RunMigrations(ctx, cfg, vm) }