mirror of
https://github.com/0glabs/0g-chain.git
synced 2025-01-12 08:15:18 +00:00
e14466547d
* wip: issuance module * add keeper and module methods * add begin blocker * add client * update events * add simulations * ignore v0.8 migration tests for now * ignore migration tests in ci * add test suite * update spec to match implementation details * add unblock method * address review comments * fix typos
18 lines
459 B
Go
18 lines
459 B
Go
package issuance
|
|
|
|
import (
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
"github.com/kava-labs/kava/x/issuance/keeper"
|
|
)
|
|
|
|
// BeginBlocker iterates over each asset and seizes coins from blocked addresses by returning them to the asset owner
|
|
func BeginBlocker(ctx sdk.Context, k keeper.Keeper) {
|
|
params := k.GetParams(ctx)
|
|
for _, asset := range params.Assets {
|
|
err := k.SeizeCoinsFromBlockedAddresses(ctx, asset.Denom)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
}
|