Fees calculation
struct CommissionParamsStruct{
address account; // Address of the user doing the transaction
uint256 amount; // Amount from which commissions are calculated
uint8 txTypeFeesMOC; // Transaction type if fees are paid in MoC
uint8 txTypeFeesRBTC; // Transaction type if fees are paid in RBTC
address vendorAccount; // Vendor address
}struct CommissionReturnStruct{
uint256 btcCommission; // Commission in BTC if it is charged in BTC; otherwise 0
uint256 mocCommission; // Commission in MoC if it is charged in MoC; otherwise 0
uint256 btcPrice; // BTC price at the moment of the transaction
uint256 mocPrice; // MoC price at the moment of the transaction
uint256 btcMarkup; // Markup in BTC if it is charged in BTC; otherwise 0
uint256 mocMarkup; // Markup in MoC if it is charged in BTC; otherwise 0
}Last updated