BitShares Forum

Main => General Discussion => Topic started by: BTSdac on January 24, 2016, 09:07:24 am

Title: some question about worker
Post 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?
Title: Re: some question about worker
Post by: BTSdac on January 24, 2016, 09:52:34 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?
Code: [Select]
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
Title: Re: some question about worker
Post by: xeroc on January 24, 2016, 03:49:18 pm
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 .
Title: Re: some question about worker
Post by: xeroc on January 24, 2016, 03:54:43 pm
http://cryptofresh.com/reserve