mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-25 15:55:18 +00:00
790753f156
* wip: refactor to allow multiple bep3 assets * update tests * sims: validate asset before claiming * move asset supply to params * update tests * fix sims * fix tests * wip: add migration from v0.9 -> v0.10 bep3 * fix build and migration tests * nit: rename file * move asset supply out of params * update committee tests * fix sims * address review comments * address review comments * address review comments
13 lines
345 B
Go
13 lines
345 B
Go
package bep3
|
|
|
|
import (
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
)
|
|
|
|
// BeginBlocker on every block expires outdated atomic swaps and removes closed
|
|
// swap from long term storage (default storage time of 1 week)
|
|
func BeginBlocker(ctx sdk.Context, k Keeper) {
|
|
k.UpdateExpiredAtomicSwaps(ctx)
|
|
k.DeleteClosedAtomicSwapsFromLongtermStorage(ctx)
|
|
}
|