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

Method SetPool

x/margin/types/expected_keepers.go:22–22  ·  view source on GitHub ↗
(ctx sdk.Context, pool *clptypes.Pool)

Source from the content-addressed store, hash-verified

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)
25

Callers 15

BeginBlockerMethod · 0.65
BorrowMethod · 0.65
UpdatePoolHealthMethod · 0.65
TakeInCustodyMethod · 0.65
TakeOutCustodyMethod · 0.65
RepayMethod · 0.65
TestKeeper_OpenFunction · 0.65
TestKeeper_CloseFunction · 0.65
TestKeeper_OpenCloseFunction · 0.65
CreateStateFunction · 0.65

Implementers 1

Keeperx/clp/keeper/keeper.go

Calls

no outgoing calls

Tested by 13

TestKeeper_OpenFunction · 0.52
TestKeeper_CloseFunction · 0.52
TestKeeper_OpenCloseFunction · 0.52
CreateStateFunction · 0.52
SetDataFunction · 0.52
TestEndBlockFunction · 0.52
TestKeeper_ErrorsFunction · 0.52
TestUnitsCheckFunction · 0.52
TestKeeper_GetPoolsFunction · 0.52