2022-09-28 02:28:57 +00:00
|
|
|
package keeper
|
|
|
|
|
|
|
|
import (
|
2024-05-01 03:17:24 +00:00
|
|
|
"github.com/0glabs/0g-chain/x/router/types"
|
2022-09-28 02:28:57 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Keeper is the keeper for the module
|
|
|
|
type Keeper struct {
|
|
|
|
earnKeeper types.EarnKeeper
|
|
|
|
liquidKeeper types.LiquidKeeper
|
|
|
|
stakingKeeper types.StakingKeeper
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewKeeper creates a new keeper
|
|
|
|
func NewKeeper(
|
|
|
|
earnKeeper types.EarnKeeper,
|
|
|
|
liquidKeeper types.LiquidKeeper,
|
|
|
|
stakingKeeper types.StakingKeeper,
|
|
|
|
) Keeper {
|
|
|
|
|
|
|
|
return Keeper{
|
|
|
|
earnKeeper: earnKeeper,
|
|
|
|
liquidKeeper: liquidKeeper,
|
|
|
|
stakingKeeper: stakingKeeper,
|
|
|
|
}
|
|
|
|
}
|