Skip to content

Commit

Permalink
Merge pull request #333 from terra-money/chore/add-multisig
Browse files Browse the repository at this point in the history
chore: burn from multisig
  • Loading branch information
javiersuweijie authored Aug 22, 2024
2 parents a60c917 + be42ae5 commit ec5e2c5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/upgrades/v2.12/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand All @@ -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)
}
Expand Down

0 comments on commit ec5e2c5

Please sign in to comment.