[#465] settlement: Use unified details format for all asset transfers

Unified format uses transfer type as the first byte
and extra details next. List of transfer types used in
contracts defined in `details.go`. It includes:
- audit settlement,
- basic income collection,
- basic income distribution.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-04-07 15:12:36 +03:00 committed by Alex Vanin
parent 1d68e74636
commit 3e9c578e62
9 changed files with 75 additions and 29 deletions

View file

@ -41,7 +41,7 @@ func (inc *IncomeSettlementContext) Distribute() {
})
})
common.TransferAssets(inc.exchange, txTable)
common.TransferAssets(inc.exchange, txTable, common.BasicIncomeDistributionDetails(inc.epoch))
}
func normalizedValue(n, total, limit *big.Int) *big.Int {