Golos
Разработчикам Статистика Баунти Документация Партнеры Github
Public Member Functions | Public Attributes | List of all members
golos::chain::liquidity_reward_balance_object Class Reference

#include <steem_objects.hpp>

Inheritance diagram for golos::chain::liquidity_reward_balance_object:

Public Member Functions

template<typename Constructor , typename Allocator >
 liquidity_reward_balance_object (Constructor &&c, allocator< Allocator > a)
 
 liquidity_reward_balance_object ()
 
uint128_t volume_weight () const
 used to decay negative liquidity balances. block num More...
 
uint128_t min_volume_weight () const
 
void update_weight (bool hf9)
 
int is_positive () const
 

Public Attributes

id_type id
 
account_object::id_type owner
 
int64_t steem_volume = 0
 
int64_t sbd_volume = 0
 
uint128_t weight = 0
 
time_point_sec last_update = fc::time_point_sec::min()
 

Detailed Description

If last_update is greater than 1 week, then volume gets reset to 0

When a user is a maker, their volume increases When a user is a taker, their volume decreases

Every 1000 blocks, the account that has the highest volume_weight() is paid the maximum of 1000 STEEM or 1000 * virtual_supply / (100*blocks_per_year) aka 10 * virtual_supply / blocks_per_year

After being paid volume gets reset to 0

Definition at line 106 of file steem_objects.hpp.

Constructor & Destructor Documentation

◆ liquidity_reward_balance_object() [1/2]

template<typename Constructor , typename Allocator >
golos::chain::liquidity_reward_balance_object::liquidity_reward_balance_object ( Constructor &&  c,
allocator< Allocator >  a 
)
inline

Definition at line 110 of file steem_objects.hpp.

◆ liquidity_reward_balance_object() [2/2]

golos::chain::liquidity_reward_balance_object::liquidity_reward_balance_object ( )
inline

Definition at line 114 of file steem_objects.hpp.

Member Function Documentation

◆ is_positive()

int golos::chain::liquidity_reward_balance_object::is_positive ( ) const
inline

Definition at line 139 of file steem_objects.hpp.

◆ min_volume_weight()

uint128_t golos::chain::liquidity_reward_balance_object::min_volume_weight ( ) const
inline

Definition at line 131 of file steem_objects.hpp.

◆ update_weight()

void golos::chain::liquidity_reward_balance_object::update_weight ( bool  hf9)
inline

Definition at line 135 of file steem_objects.hpp.

◆ volume_weight()

uint128_t golos::chain::liquidity_reward_balance_object::volume_weight ( ) const
inline

used to decay negative liquidity balances. block num

this is the sort index

Definition at line 127 of file steem_objects.hpp.

Member Data Documentation

◆ id

id_type golos::chain::liquidity_reward_balance_object::id

Definition at line 117 of file steem_objects.hpp.

◆ last_update

time_point_sec golos::chain::liquidity_reward_balance_object::last_update = fc::time_point_sec::min()

Definition at line 124 of file steem_objects.hpp.

◆ owner

account_object::id_type golos::chain::liquidity_reward_balance_object::owner

Definition at line 119 of file steem_objects.hpp.

◆ sbd_volume

int64_t golos::chain::liquidity_reward_balance_object::sbd_volume = 0

Definition at line 121 of file steem_objects.hpp.

◆ steem_volume

int64_t golos::chain::liquidity_reward_balance_object::steem_volume = 0

Definition at line 120 of file steem_objects.hpp.

◆ weight

uint128_t golos::chain::liquidity_reward_balance_object::weight = 0

Definition at line 122 of file steem_objects.hpp.


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