BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
28 namespace graphene {
namespace protocol {
35 "Share asset can not be the same as one of the assets in the pool" );
60 "ID of the first asset should be smaller than ID of the second asset" );
75 "ID of the two assets should not be the same" );
asset_id_type asset_a
Type of the first asset in the pool.
asset amount_b
The amount of the second asset to deposit.
Exchange with a liquidity pool.
asset_id_type asset_b
Type of the second asset in the pool.
Create a new liquidity pool.
#define GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION(type)
optional< uint16_t > withdrawal_fee_percent
Withdrawal fee percent.
uint16_t withdrawal_fee_percent
Withdrawal fee percent.
Withdraw from a liquidity pool.
asset share_amount
The amount of the share asset to use.
Deposit to a liquidity pool.
asset min_to_receive
The minimum amount of the other asset type to receive.
asset amount_to_sell
The amount of one asset type to sell.
optional< uint16_t > taker_fee_percent
Taker fee percent.
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
asset_id_type share_asset
Type of the share asset aka the LP token.
asset amount_a
The amount of the first asset to deposit.
uint16_t taker_fee_percent
Taker fee percent.
#define GRAPHENE_100_PERCENT