We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5705a0a commit 7755785Copy full SHA for 7755785
packages/std/src/math/decimal256.rs
@@ -85,7 +85,7 @@ impl Decimal256 {
85
Self(Uint256::from(x) * Uint256::from(1_000_000_000_000_000u128))
86
}
87
88
- /// Convert bps (basis points) into Decimal256
+ /// Convert basis points (x/10000) into Decimal256
89
pub fn bps(x: u64) -> Self {
90
Self(Uint256::from(x) * Uint256::from(100_000_000_000_000u128))
91
0 commit comments