Skip to content

Commit

Permalink
Merge pull request #329 from terra-money/chore/burn-exploiter-acc
Browse files Browse the repository at this point in the history
chore: burn all from exploiter acc
  • Loading branch information
javiersuweijie authored Aug 13, 2024
2 parents ae6333e + cd848b8 commit ad9d23f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/upgrades/v2.12/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)
}
Expand Down

0 comments on commit ad9d23f

Please sign in to comment.