@pwngh/economy-lab
    Preparing search index...

    Type Alias RatesConfig

    The exact integer knobs configuredRates takes; accepted anywhere a Rates instance is (a PortsInit rates field, for one). Each pair states one CREDIT-to-USD rate as rate / 10^scale USD per credit — exact integers, never a float. Construction refuses a table whose buy rate sits below par, since every top-up would then book a loss.

    type RatesConfig = {
        buyRate: bigint;
        buyScale: number;
        parRate: bigint;
        parScale: number;
        payoutRate: bigint;
        payoutScale: number;
    }
    Index
    buyRate: bigint

    What a buyer pays per credit: buyRate / 10^buyScale USD.

    buyScale: number
    parRate: bigint

    The backing peg: the USD per credit the trust must hold against custodial balances.

    parScale: number
    payoutRate: bigint

    The cash-out rate: the USD per credit a payout settles at.

    payoutScale: number