- map_onchain_asset_to_position(asset, state)#
Map an on-chain found asset to a trading position.
Any reserve currency deposits go to the reserve
Any trading position assets go to their respective open trading and frozen position
If there are trading position assets and no position is open, then panic
The position we think the asset belongs to.
None if there is no reserve, open or frozen positions we know of.
- Return type: