FastMM documentation
FastMM C++ API 0.6.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
fastmm::TreasurySection Struct Reference

[venues. More...

#include <fastmm/config/config.hpp>

Public Attributes

bool configured = false
 the table is present
 
bool enabled = false
 
bool dry_run = false
 
std::string asset
 
std::map< std::string, double > weights
 pool account -> weight (absent: 1)
 
std::map< std::string, std::string > min_free
 pool account -> decimal (absent: 0)
 
double threshold = 0.2
 
std::string min_amount = "0"
 
std::string max_amount = "0"
 
std::string step = "0.01"
 
std::int64_t interval_s = 10
 
std::int64_t min_interval_s = 60
 
std::int64_t max_per_hour = 12
 
std::int64_t cooldown_s = 300
 
std::int64_t timeout_s = 60
 
std::int64_t settle_s = 30
 
std::string state_file
 empty: <journal_dir>/<engine name>.<primary>.treasury
 

Detailed Description

[venues.

<primary>.treasury]: the pool treasury of an account pool's primary (core/treasury.hpp). Decimals keep their text; Config::treasury_config() makes it typed.

Member Data Documentation

◆ configured

bool fastmm::TreasurySection::configured = false

the table is present

◆ enabled

bool fastmm::TreasurySection::enabled = false

◆ dry_run

bool fastmm::TreasurySection::dry_run = false

◆ asset

std::string fastmm::TreasurySection::asset

◆ weights

std::map<std::string, double> fastmm::TreasurySection::weights

pool account -> weight (absent: 1)

◆ min_free

std::map<std::string, std::string> fastmm::TreasurySection::min_free

pool account -> decimal (absent: 0)

◆ threshold

double fastmm::TreasurySection::threshold = 0.2

◆ min_amount

std::string fastmm::TreasurySection::min_amount = "0"

◆ max_amount

std::string fastmm::TreasurySection::max_amount = "0"

◆ step

std::string fastmm::TreasurySection::step = "0.01"

◆ interval_s

std::int64_t fastmm::TreasurySection::interval_s = 10

◆ min_interval_s

std::int64_t fastmm::TreasurySection::min_interval_s = 60

◆ max_per_hour

std::int64_t fastmm::TreasurySection::max_per_hour = 12

◆ cooldown_s

std::int64_t fastmm::TreasurySection::cooldown_s = 300

◆ timeout_s

std::int64_t fastmm::TreasurySection::timeout_s = 60

◆ settle_s

std::int64_t fastmm::TreasurySection::settle_s = 30

◆ state_file

std::string fastmm::TreasurySection::state_file

empty: <journal_dir>/<engine name>.<primary>.treasury