Skip to main content

setFeeGauge

Contract: JBPayoutRedemptionPaymentTerminal​‌

Interface: IJBPayoutRedemptionPaymentTerminal

Allows the fee gauge to be updated.

Only the owner of this contract can change the fee gauge.

Definition

function setFeeGauge(IJBFeeGauge _feeGauge) external virtual override onlyOwner { ... }
  • Arguments:
    • _feeGauge is the new fee gauge.
  • Through the onlyOwner modifier, the function can only be accessed by the owner of this contract.
  • The function can be overriden by inheriting contracts.
  • The function doesn't return anything.

Body

  1. Store the new fee gauge.

    // Store the new fee gauge.
    feeGauge = _feeGauge;

    Internal references:

  2. Emit a SetFeeGauge event with the relevant parameters.

    emit SetFeeGauge(_feeGauge, msg.sender);

    Event references: