Skip to main content

record_asset_selection

Function record_asset_selection 

Source
fn record_asset_selection(best_asset: AssetRef, best_assets: &mut Vec<AssetRef>)
Expand description

Record a selected asset. Candidate selections represent one tranche; repeated selections of the same candidate increase the resulting asset’s number of tranches while preserving its tranche size.

§Arguments

  • best_asset - The asset that has been selected as the best option in this round
  • best_assets - The list of assets that have been selected so far