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.
2 parents 2ff705f + b35b48f commit 68cff90Copy full SHA for 68cff90
1 file changed
cadence/lib/FlowALPMath.cdc
@@ -83,8 +83,7 @@ access(all) contract FlowALPMath {
83
}
84
85
access(self) view fun roundUp(_ base: UFix64): UFix64 {
86
- let increment: UFix64 = 0.00000001
87
- return base >= UFix64.max - increment ? UFix64.max : base + increment
+ return base.saturatingAdd(0.00000001)
88
89
90
access(self) view fun roundHalfToEven(_ base: UFix64, _ remainder: UFix128): UFix64 {
0 commit comments