Golos
Разработчикам Статистика Баунти Документация Партнеры Github
Classes | Functions
golos::chain::utilities Namespace Reference

Classes

struct  comment_reward_context
 

Functions

protocol::asset< 0, 17, 0 > to_sbd (const protocol::price< 0, 17, 0 > &p, const protocol::asset< 0, 17, 0 > &steem)
 
protocol::asset< 0, 17, 0 > to_steem (const protocol::price< 0, 17, 0 > &p, const protocol::asset< 0, 17, 0 > &sbd)
 
uint64_t get_rshare_reward (const comment_reward_context &ctx)
 
uint64_t get_rshare_reward (const comment_reward_context &ctx, const reward_fund_object &rf)
 
uint64_t get_vote_weight (uint64_t vote_rshares, const reward_fund_object &rf)
 
uint128_t get_content_constant_s ()
 
uint128_t calculate_claims (const uint128_t &rshares)
 
uint128_t calculate_claims (const uint128_t &rshares, const reward_fund_object &rf)
 
bool is_comment_payout_dust (const protocol::price< 0, 17, 0 > &p, uint64_t steem_payout)
 
boost::multiprecision::uint256_t to256 (const fc::uint128 &t)
 

Function Documentation

◆ calculate_claims() [1/2]

uint128_t golos::chain::utilities::calculate_claims ( const uint128_t &  rshares)

Definition at line 80 of file reward.cpp.

◆ calculate_claims() [2/2]

uint128_t golos::chain::utilities::calculate_claims ( const uint128_t &  rshares,
const reward_fund_object rf 
)

Definition at line 86 of file reward.cpp.

◆ get_content_constant_s()

uint128_t golos::chain::utilities::get_content_constant_s ( )
inline

Definition at line 34 of file reward.hpp.

◆ get_rshare_reward() [1/2]

uint64_t golos::chain::utilities::get_rshare_reward ( const comment_reward_context ctx)

Definition at line 8 of file reward.cpp.

◆ get_rshare_reward() [2/2]

uint64_t golos::chain::utilities::get_rshare_reward ( const comment_reward_context ctx,
const reward_fund_object rf 
)

Definition at line 37 of file reward.cpp.

◆ get_vote_weight()

uint64_t golos::chain::utilities::get_vote_weight ( uint64_t  vote_rshares,
const reward_fund_object rf 
)

Definition at line 68 of file reward.cpp.

◆ is_comment_payout_dust()

bool golos::chain::utilities::is_comment_payout_dust ( const protocol::price< 0, 17, 0 > &  p,
uint64_t  steem_payout 
)
inline

Definition at line 42 of file reward.hpp.

◆ to256()

boost::multiprecision::uint256_t golos::chain::utilities::to256 ( const fc::uint128 &  t)
inline

Definition at line 10 of file uint256.hpp.

◆ to_sbd()

protocol::asset<0, 17, 0> golos::chain::utilities::to_sbd ( const protocol::price< 0, 17, 0 > &  p,
const protocol::asset< 0, 17, 0 > &  steem 
)
inline

Definition at line 9 of file asset.hpp.

◆ to_steem()

protocol::asset<0, 17, 0> golos::chain::utilities::to_steem ( const protocol::price< 0, 17, 0 > &  p,
const protocol::asset< 0, 17, 0 > &  sbd 
)
inline

Definition at line 17 of file asset.hpp.