Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddLiquidityReq ¶
type AddLiquidityReq struct {
BaseReq rest.BaseReq `json:"base_req"`
Signer string `json:"signer"` // User who is trying to add liquidity to the pool
ExternalAsset types.Asset `json:"external_asset"` // ExternalAsset in the pool pair (ex rwn:ceth)
NativeAssetAmount sdk.Uint `json:"native_asset_amount"` // NativeAssetAmount is the amount of native asset being added
ExternalAssetAmount sdk.Uint `json:"external_asset_amount"` // ExternalAssetAmount is the amount of external asset being added
}
type CreatePoolReq ¶
type CreatePoolReq struct {
BaseReq rest.BaseReq `json:"base_req"`
Signer string `json:"signer"` // User who is trying to create the pool
ExternalAsset types.Asset `json:"external_asset"` // ExternalAsset in the pool pair (ex rwn:ceth)
NativeAssetAmount sdk.Uint `json:"native_asset_amount"` // NativeAssetAmount is the amount of native asset being added
ExternalAssetAmount sdk.Uint `json:"external_asset_amount"` // ExternalAssetAmount is the amount of external asset being added
}
type DecommissionPoolReq ¶
type RemoveLiquidityReq ¶
type RemoveLiquidityReq struct {
BaseReq rest.BaseReq `json:"base_req"`
Signer string `json:"signer"` // User who is trying to remove liquidity to the pool
ExternalAsset types.Asset `json:"external_asset"` // ExternalAsset in the pool pair (ex rwn:ceth)
WBasisPoints sdk.Int `json:"w_basis_points"` // WBasisPoints determines the amount of asset being withdrawn
Asymmetry sdk.Int `json:"asymmetry"` // Asymmetry decides the type of asset being withdrawn asymmetry means equal amounts of native and external
}
type RemoveLiquidityUnitsReq ¶ added in v0.13.0
type RemoveLiquidityUnitsReq struct {
BaseReq rest.BaseReq `json:"base_req"`
Signer string `json:"signer"` // User who is trying to remove liquidity to the pool
ExternalAsset types.Asset `json:"external_asset"` // ExternalAsset in the pool pair (ex rwn:ceth)
WithdrawUnits sdk.Uint `json:"withdraw_units"` // WithdrawUnits determines the amount of asset being withdrawn
}
type SwapReq ¶
type SwapReq struct {
BaseReq rest.BaseReq `json:"base_req"`
Signer string `json:"signer"` // User who is trying to swap
SentAsset types.Asset `json:"sent_asset"` // Asset which the user is sending ,can be an external asset or RWN
ReceivedAsset types.Asset `json:"received_asset"` // Asset which the user wants to receive ,can be an external asset or RWN
SentAmount sdk.Uint `json:"sent_amount"` // Amount of SentAsset being sent
MinReceivingAmount sdk.Uint `json:"min_receiving_amount"` // Min amount specified by the user m the swap will not go through if the receiving amount drops below this value
}
Click to show internal directories.
Click to hide internal directories.