Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions cadence/lib/FlowALPMath.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ access(all) contract FlowALPMath {
}

access(self) view fun roundUp(_ base: UFix64): UFix64 {
let increment: UFix64 = 0.00000001
return base >= UFix64.max - increment ? UFix64.max : base + increment
return base.saturatingAdd(0.00000001)
}

access(self) view fun roundHalfToEven(_ base: UFix64, _ remainder: UFix128): UFix64 {
Expand Down
Loading