@hyperlane-xyz/sdk
Version:
The official SDK for the Hyperlane Network
10 lines • 419 B
TypeScript
export declare const MAX_BPS = 10000n;
/**
* Converts fee parameters to basis points (BPS)
* @param maxFee - Maximum fee amount
* @param halfAmount - Half of the amount at which maxFee is applied
* @returns Fee in basis points
* @throws Error if halfAmount is zero to prevent division by zero
*/
export declare function convertToBps(maxFee: bigint, halfAmount: bigint): bigint;
//# sourceMappingURL=utils.d.ts.map