forked from TrueCloudLab/frostfs-node
[#1687] *: Perform go fmt
using go v1.19
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
37ab26bfa9
commit
30341f2192
25 changed files with 114 additions and 112 deletions
|
@ -820,11 +820,13 @@ func alreadyOnChainError(err error) bool {
|
|||
|
||||
// CalculateNotaryDepositAmount calculates notary deposit amount
|
||||
// using the rule:
|
||||
// IF notaryBalance < gasBalance * gasMul {
|
||||
// DEPOSIT gasBalance / gasDiv
|
||||
// } ELSE {
|
||||
// DEPOSIT 1
|
||||
// }
|
||||
//
|
||||
// IF notaryBalance < gasBalance * gasMul {
|
||||
// DEPOSIT gasBalance / gasDiv
|
||||
// } ELSE {
|
||||
// DEPOSIT 1
|
||||
// }
|
||||
//
|
||||
// gasMul and gasDiv must be positive.
|
||||
func CalculateNotaryDepositAmount(c *Client, gasMul, gasDiv int64) (fixedn.Fixed8, error) {
|
||||
notaryBalance, err := c.GetNotaryDeposit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue