MCPcopy Create free account
hub / github.com/circlefin/arc-node / clampBaseFee

Function clampBaseFee

tests/helpers/ProtocolConfig.ts:61–69  ·  view source on GitHub ↗
(baseFee: bigint, feeParams: FeeParams)

Source from the content-addressed store, hash-verified

59}
60
61export function clampBaseFee(baseFee: bigint, feeParams: FeeParams) {
62 if (baseFee < feeParams.minBaseFee) {
63 return feeParams.minBaseFee
64 }
65 if (baseFee > feeParams.maxBaseFee) {
66 return feeParams.maxBaseFee
67 }
68 return baseFee
69}

Callers 1

getNextBaseFeeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected