BitShares Forum
Main => General Discussion => Topic started by: BTSdac on January 24, 2016, 09:07:24 am
-
I try explain worker function to public , but I have two questions ,who can help me ,thanks thanks
1. what different between "burn_worker" and "refund_worker"?
2.how many bts chain's budget per day?
-
I try explain worker function to public , but I have two questions ,who can help me ,thanks thanks
1. what different between "burn_worker" and "refund_worker"?
2.how many bts chain's budget per day?
void refund_worker_type::pay_worker(share_type pay, database& db)
{
total_burned += pay;
db.modify(db.get(asset_id_type()).dynamic_data(db), [pay](asset_dynamic_data_object& d) {
d.current_supply -= pay;
});
}
void burn_worker_type::pay_worker(share_type pay, database& db)
{
total_burned += pay;
db.adjust_balance( GRAPHENE_NULL_ACCOUNT, pay );
}
they are both burn the pay ,
but refund_worker_type does not increase totally supply of core asset
-
Burn reduces the max supply while refund gives the pay back to the reserves ..
Bts pay per day is a blockchain paramater that is controlled by committee .
-
http://cryptofresh.com/reserve