Module: bindings-perp
This CosmosWasm module is a simple wrapper to allow other contracts (or using nibid tx wasm execute
) to execute messages against the Nibiru perp module. There are no checks on any of the messages; they are simply passed through and handled by the custom Wasm executor (see for more details).
The entry points are
ExecuteMsg::OpenPosition
— with controllable parameterssender
,pair
,is_long
,quote_amount
,leverage
, andbase_amount_limit
ExecuteMsg::ClosePosition
— with controllable parameterssender
andpair
ExecuteMsg::AddMargin
— with controllable parameterssender
,pair
, andmargin
ExecuteMsg::RemoveMargin
— with controllable parameterssender
,pair
, andmargin
ExecuteMsg::MultiLiquidate
— with controllable parameterspair
andliquidations
ExecuteMsg::DonateToInsuranceFund
— with controllable parameterssender
anddonation
ExecuteMsg::NoOp
— with no parameters