-
Notifications
You must be signed in to change notification settings - Fork 2
Frequently Asked Questions
In CYBEX, all kinds of assets and fees consist of amount and asset id. The value of asset can be expressed with amount and its precision.
value(or price) = amount / 10^precision
Every network broadcaset API should pay the network fee. The structure of fee
is
parameter | typey | description |
---|---|---|
amount | share_type | fee amount |
asset_id | asset_id_type | asset id of fee |
The required fee of operation can be get through the get_required_fees of database APIs.
Once the fee is insufficient, the broadcast connection will be failed. If the operation pays more than the required fee, the extra part will be charged by nextwork as well.
If a operation is paid in a non-CYB asset, the fee is implicitly exchange into CYB to pay the network fee.
operation fee = the required fee in CYB * the inital exchange rate
The initial rate is CYB/non-CYB asset
which is set by the asset owner when creating the asset. It can be get through the get_assets API.
Once the funds is withdrawed from CYBEX account to the external account. The operation will be charged by gateway and CYBEX network.
withdrawal fee = gateway fee + transfer operation fee
The gateway fee should be paid in the asset of fund. The transfer fee follows the rules of any other CYBEX operations.
Per KByte transaction size will cost additional 0.00555 CYB for basic account.