BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
graphene::chain::liquidity_pool_object Class Reference

A liquidity pool. More...

#include <liquidity_pool_object.hpp>

Inheritance diagram for graphene::chain::liquidity_pool_object:
graphene::db::abstract_object< liquidity_pool_object > graphene::db::object

Public Member Functions

void update_virtual_value ()
 
- Public Member Functions inherited from graphene::db::abstract_object< liquidity_pool_object >
virtual unique_ptr< objectclone () const
 these methods are implemented for derived classes by inheriting abstract_object<DerivedClass> More...
 
virtual void move_from (object &obj)
 
virtual variant to_variant () const
 
virtual vector< char > pack () const
 
- Public Member Functions inherited from graphene::db::object
 object ()
 
virtual ~object ()
 

Public Attributes

asset_id_type asset_a
 Type of the first asset in the pool. More...
 
asset_id_type asset_b
 Type of the second asset in the pool. More...
 
share_type balance_a
 The balance of the first asset in the pool. More...
 
share_type balance_b
 The balance of the second asset in the pool. More...
 
asset_id_type share_asset
 Type of the share asset aka the LP token. More...
 
uint16_t taker_fee_percent = 0
 Taker fee percent. More...
 
uint16_t withdrawal_fee_percent = 0
 Withdrawal fee percent. More...
 
fc::uint128_t virtual_value = 0
 Virtual value of the pool. More...
 
- Public Attributes inherited from graphene::db::object
object_id_type id
 

Static Public Attributes

static constexpr uint8_t space_id = protocol_ids
 
static constexpr uint8_t type_id = liquidity_pool_object_type
 

Detailed Description

A liquidity pool.

Definition at line 44 of file liquidity_pool_object.hpp.

Member Function Documentation

void graphene::chain::liquidity_pool_object::update_virtual_value ( )
inline

Definition at line 59 of file liquidity_pool_object.hpp.

Member Data Documentation

asset_id_type graphene::chain::liquidity_pool_object::asset_a

Type of the first asset in the pool.

Definition at line 50 of file liquidity_pool_object.hpp.

asset_id_type graphene::chain::liquidity_pool_object::asset_b

Type of the second asset in the pool.

Definition at line 51 of file liquidity_pool_object.hpp.

share_type graphene::chain::liquidity_pool_object::balance_a

The balance of the first asset in the pool.

Definition at line 52 of file liquidity_pool_object.hpp.

share_type graphene::chain::liquidity_pool_object::balance_b

The balance of the second asset in the pool.

Definition at line 53 of file liquidity_pool_object.hpp.

asset_id_type graphene::chain::liquidity_pool_object::share_asset

Type of the share asset aka the LP token.

Definition at line 54 of file liquidity_pool_object.hpp.

constexpr uint8_t graphene::chain::liquidity_pool_object::space_id = protocol_ids
static

Definition at line 47 of file liquidity_pool_object.hpp.

uint16_t graphene::chain::liquidity_pool_object::taker_fee_percent = 0

Taker fee percent.

Definition at line 55 of file liquidity_pool_object.hpp.

constexpr uint8_t graphene::chain::liquidity_pool_object::type_id = liquidity_pool_object_type
static

Definition at line 48 of file liquidity_pool_object.hpp.

fc::uint128_t graphene::chain::liquidity_pool_object::virtual_value = 0

Virtual value of the pool.

Definition at line 57 of file liquidity_pool_object.hpp.

uint16_t graphene::chain::liquidity_pool_object::withdrawal_fee_percent = 0

Withdrawal fee percent.

Definition at line 56 of file liquidity_pool_object.hpp.


The documentation for this class was generated from the following file: