mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-14 03:55:19 +00:00
6c68e41758
* most audit revisions * remove expected income * update begin block spec * filter queryAtomicSwaps, add queryAssetSupplies * update old address * update test * Remove legacy method * remove legacy comment * address PR comments * IsValid for SwapDirection, SwapStatus * fix rng logging * query asset supplies * return [64]byte from rng * remove cross chain field from MsgCreateAtomicSwap * move swap filtering to querier * rename Limit field to SupplyLimit
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)
|
|
}
|