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: protocol-contracts/confidential-wrapper/docs/README.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -281,12 +281,19 @@ The unwrap mechanism stores requests in a mapping keyed by ciphertext and the cu
281
281
282
282
The maximum number of decimals `_maxDecimals()` for the confidential token is currently set to **6 decimals** only. This is due to FHE limitations as confidential balances must be represented by the euint64 encrypted datatype.
283
283
284
-
It is possible that future implementations of the wrapper set a higher `_maxDecimals()` value to better suit the needs of the underlying token. For example, WBTC might require 8 decimals since using only 6 would make the smallest unit impractically expensive.
284
+
It is possible that future implementations of the wrapper set a higher `_maxDecimals()` value to better suit the needs of the underlying token. For example, cWBTC might require 8 decimals since using only 6 would make the smallest unit impractically expensive.
285
285
286
286
At deployment, the confidential wrapper sets its number of decimals as:
287
287
- the number of decimals of the underlying token if it is less than `_maxDecimals()`
288
288
-`_maxDecimals()` otherwise
289
289
290
+
**Example with `_maxDecimals()` set to 6**
291
+
| Underlying Decimals | Wrapper Decimals | Example |
0 commit comments