[#326] ir/settlement: Move the calculation of the minimum audit fee
Move control of the minimum cost of payment for the audit from the implementation of the Exchanger to the place where the amount is calculated. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
87c2c3ecc6
commit
2bca5879cd
2 changed files with 10 additions and 7 deletions
|
@ -175,13 +175,8 @@ func (a auditSettlementDeps) Transfer(sender, recipient *owner.ID, amount *big.I
|
|||
return
|
||||
}
|
||||
|
||||
amount64 := amount.Int64()
|
||||
if amount64 == 0 {
|
||||
amount64 = 1
|
||||
}
|
||||
|
||||
if err := a.balanceClient.TransferX(balanceClient.TransferPrm{
|
||||
Amount: amount64,
|
||||
Amount: amount.Int64(),
|
||||
From: sender,
|
||||
To: recipient,
|
||||
Details: transferAuditDetails,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue