-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ irm: allow curve A and B injection
- Loading branch information
1 parent
e187577
commit 3810a91
Showing
3 changed files
with
29 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import type IRMParameters from "./Parameters.d.ts"; | ||
import type { IRMFloatingParameters } from "./Parameters.d.ts"; | ||
import baseRate from "./baseRate.js"; | ||
|
||
export default function floatingRate(uFloating: bigint, uGlobal: bigint, parameters: IRMParameters) { | ||
export default function floatingRate(uFloating: bigint, uGlobal: bigint, parameters: IRMFloatingParameters) { | ||
const { maxRate } = parameters; | ||
const base = baseRate(uFloating, uGlobal, parameters); | ||
return base > maxRate ? maxRate : base; | ||
} | ||
|
||
export { default as WAD } from "../fixed-point-math/WAD.js"; | ||
export type { default as IRMParameters } from "./Parameters.d.ts"; | ||
export type { default as IRMParameters, IRMFloatingParameters } from "./Parameters.d.ts"; |