Skip to content

Commit 7755785

Browse files
shanevwebmaster128
authored andcommitted
Update packages/std/src/math/decimal256.rs
Co-authored-by: Simon Warta <[email protected]>
1 parent 5705a0a commit 7755785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/std/src/math/decimal256.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl Decimal256 {
8585
Self(Uint256::from(x) * Uint256::from(1_000_000_000_000_000u128))
8686
}
8787

88-
/// Convert bps (basis points) into Decimal256
88+
/// Convert basis points (x/10000) into Decimal256
8989
pub fn bps(x: u64) -> Self {
9090
Self(Uint256::from(x) * Uint256::from(100_000_000_000_000u128))
9191
}

0 commit comments

Comments
 (0)