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

Method CLPSwap

x/margin/types/expected_keepers.go:77–77  ·  view source on GitHub ↗
(ctx sdk.Context, sentAmount sdk.Uint, to string, pool clptypes.Pool)

Source from the content-addressed store, hash-verified

75 IsRowanCollateralEnabled(ctx sdk.Context) bool
76
77 CLPSwap(ctx sdk.Context, sentAmount sdk.Uint, to string, pool clptypes.Pool) (sdk.Uint, error)
78 Borrow(ctx sdk.Context, collateralAsset string, collateralAmount sdk.Uint, custodyAmount sdk.Uint, mtp *MTP, pool *clptypes.Pool, eta sdk.Dec) error
79 TakeInCustody(ctx sdk.Context, mtp MTP, pool *clptypes.Pool) error
80 TakeOutCustody(ctx sdk.Context, mtp MTP, pool *clptypes.Pool) error

Callers 3

OpenLongMethod · 0.65
CloseLongMethod · 0.65
TestKeeper_CLPSwapFunction · 0.65

Calls

no outgoing calls

Tested by 1

TestKeeper_CLPSwapFunction · 0.52