You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: XLS-0065-single-asset-vault/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,7 +138,7 @@ Shares represent the portion of the Vault assets a depositor owns. Vault Owners
138
138
139
139
The **`Scale`** field enables the vault to accurately represent fractional asset values using integer-only MPT shares, which prevents the loss of value from decimal truncation. It defines a scaling factor, calculated as $10^{\text{Scale}}$, that converts a decimal asset amount into a corresponding whole number of shares. For example, with a `Scale` of `6`, a deposit of **20.3** assets is multiplied by $10^6$ and credited as **20,300,000** shares.
140
140
141
-
As a general rule, all calculations involving MPTs are executed with a precision of a single MPT, treating them as indivisible units. If a calculation results in a fractional amount, it will be rounded up, down or to the nearest whole number depending on the context. Crucially, the rounding direction is determined by the protocol and is not controlled by the transaction submitter, which may lead to unexpected results.
141
+
As a general rule, all calculations involving MPTs are executed with a precision of a single MPT, treating them as indivisible units. If a calculation results in a fractional amount, it will be rounded up, down or to the nearest whole number depending on the context. For example, Vault shares are always rounded down. Crucially, the rounding direction is determined by the protocol and is not controlled by the transaction submitter, which may lead to unexpected results.
142
142
143
143
###### 3.1.6.1.1 `IOU`
144
144
@@ -246,7 +246,7 @@ The calculation depends on whether the vault is empty.
246
246
-**Initial Deposit**: For the first deposit into an empty vault, shares are calculated using a scaling factor, $\sigma = 10^{\text{Scale}}$, to properly represent fractional assets as whole numbers.
-**Subsequent Deposits**: For all other deposits, shares are calculated proportionally using the deposit NAV. The resulting $\Delta_{shares}$ value is **rounded down** to the nearest integer.
249
+
-**Subsequent Deposits**: For all other deposits, shares are calculated proportionally using the deposit NAV. The resulting $\Delta_{shares}$ value is **rounded down**.
0 commit comments