MCPcopy Create free account
hub / github.com/Sifchain/sifnode / GetPool

Method GetPool

x/margin/types/expected_keepers.go:21–21  ·  view source on GitHub ↗
(ctx sdk.Context, symbol string)

Source from the content-addressed store, hash-verified

19type CLPKeeper interface {
20 GetPools(ctx sdk.Context) []*clptypes.Pool
21 GetPool(ctx sdk.Context, symbol string) (clptypes.Pool, error)
22 SetPool(ctx sdk.Context, pool *clptypes.Pool) error
23
24 CLPCalcSwap(ctx sdk.Context, sentAmount sdk.Uint, to clptypes.Asset, pool clptypes.Pool, marginEnabled bool) (sdk.Uint, error)

Callers 9

OpenMethod · 0.65
OpenLongMethod · 0.65
CloseLongMethod · 0.65
ForceCloseMethod · 0.65
AdminCloseMethod · 0.65
TestKeeper_OpenCloseFunction · 0.65
TestKeeper_OpenThenCloseFunction · 0.65
TestKeeper_ECFunction · 0.65
GetSQParamsMethod · 0.65

Implementers 1

Keeperx/clp/keeper/keeper.go

Calls

no outgoing calls

Tested by 3

TestKeeper_OpenCloseFunction · 0.52
TestKeeper_OpenThenCloseFunction · 0.52
TestKeeper_ECFunction · 0.52