ixWrapperDeposit, or from existing SY through ixDeposit.
For raw/display units and fee-rate scale, see Units and Fees.
Deposit Preview Math
The tranching market mints LP shares from the SY value allocated to the selected tranche. In raw execution,amountInSY is the amount_in u64 in SY token units and syExchangeRate is a Number. The result is a raw fixed-point NAV value. No token-decimal normalization happens onchain.
Deposit fees are charged in LP shares:
The user receives:
The market accounting supply increases by grossLpOut, not netLpOut:
The user receives netLpOut. The fee shares remain pending until mintProtocolFeeShares mints them to the protocol fee recipient.
Deposit Example
Assume a Senior deposit with normalized values. For raw execution, scale SY and LP amounts by the mint decimals and scale fee rates by1_000_000_000_000.
| Input | Value |
|---|---|
amountInSY | 1,000 SY |
syExchangeRate | 1.05 NAV per SY |
valueAllocated | 1,050 NAV |
currentLpSupply | 10,000 Senior LP |
trancheEffectiveNAV | 10,000 NAV |
seniorDepositProtocolFee | 0.20% |
1,047 Senior LP. Market accounting total Senior LP supply increases by 1,050, and 3 Senior LP shares are added to pending deposit protocol fees.