mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +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)
|
|
}
|