mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
b356309d90
* add rate-limiting and optional blocklists * fix: check account is not nil * add tests for rate-limiting * update simulations * fix typos * remove unsued function arg
17 lines
435 B
Go
17 lines
435 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) {
|
|
err := k.SeizeCoinsForBlockableAssets(ctx)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
k.SynchronizeBlockList(ctx)
|
|
k.UpdateTimeBasedSupplyLimits(ctx)
|
|
}
|