pub fn compute_settlement_by_price(
escrow_shares: u128,
share_price_wad: Wad,
original_share_price_wad: Wad,
) -> EscrowSettlementExpand description
Compute settlement using share price (WAD-scaled).
Alternative settlement computation using current share price instead of asset ratios. Useful when share price is already computed.
§Arguments
escrow_shares- Total shares held in escrow.share_price_wad- Current share price as a WAD (1e18 = 1.0).original_share_price_wad- Share price at time of request.
§Returns
EscrowSettlement based on price ratio.