feeSchedule, so a product that posts its own fee legs is left alone.
Schedules
A schedule is per code and currency. Setting one is console work: a person proposes it and a second person approves. It is not in force until then.Preview
This schedule chargesflat plus 0.5%, within its floor and ceiling.
10000 gives 1500, the floor, and 100000000 gives 10000, the ceiling. An inactive or unknown schedule gets NOT_FOUND.
Charge it
AddfeeSchedule to the entry, and send balanced legs for the principal alone.
metadata. This entry posts a debit of 202000 on the wallet, a credit of 200000 on settlement and a credit of 2000 on INC:FEE:NGN.
The wallet must be able to pay the principal and the fee. To charge the fee to someone else, make that account’s leg the first debit.