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

    Interface Rates

    Supplies fixed CREDIT-to-USD rates from an audited source, never from config or caller input; the three rates always hold buy >= par >= payout.

    • The money model for what buy/par/payout mean, why the ordering holds, and what the spread funds.
    • Rates for the port and its configured adapter.
    interface Rates {
        buy(currency: Currency): Rate;
        par(currency: Currency): Rate;
        payout(
            from: Currency,
            to: Currency,
            at: number,
            options?: CallOptions,
        ): Promise<Rate>;
    }
    Index