Skip to content

Commit

Permalink
Add target addresses for softfork
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsam committed May 5, 2021
1 parent a95f3f2 commit 48ad49c
Show file tree
Hide file tree
Showing 2 changed files with 2,692 additions and 13 deletions.
16 changes: 16 additions & 0 deletions x/liquidity/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,22 @@ func BeginBlocker(ctx sdk.Context, k keeper.Keeper) {
// ctx.Logger().Info("#### softfork completed", types.Airdrop2Pairs)
// }
//}
if ctx.BlockHeight() == types.Airdrop1SoftForkTargetHeight {
err := k.SoftForkAirdropMultiCoins(ctx, types.Airdrop1ProviderAddr, types.Airdrop1Pairs)
if err != nil {
ctx.Logger().Error("#### softfork-1 failed", err)
}else {
ctx.Logger().Info("#### softfork-1 completed", types.Airdrop1Pairs)
}
}
if ctx.BlockHeight() == types.Airdrop2SoftForkTargetHeight {
err := k.SoftForkAirdropMultiCoins(ctx, types.Airdrop2ProviderAddr, types.Airdrop2Pairs)
if err != nil {
ctx.Logger().Error("#### softfork-2 failed", err)
}else {
ctx.Logger().Info("#### softfork-2 completed", types.Airdrop1Pairs)
}
}
k.DeleteAndInitPoolBatch(ctx)
}

Expand Down
Loading

0 comments on commit 48ad49c

Please sign in to comment.