setFeeGauge
Contract: JBPayoutRedemptionPaymentTerminal
Interface: IJBPayoutRedemptionPaymentTerminal
- Step by step
 - Code
 - Events
 - Bug bounty
 
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:
_feeGaugeis the new fee gauge.
 - Through the 
onlyOwnermodifier, 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
- 
Store the new fee gauge.
// Store the new fee gauge.
feeGauge = _feeGauge;Internal references:
 - 
Emit a
SetFeeGaugeevent with the relevant parameters.emit SetFeeGauge(_feeGauge, msg.sender);Event references:
 
/**
  @notice
  Allows the fee gauge to be updated.
  @dev
  Only the owner of this contract can change the fee gauge.
  @param _feeGauge The new fee gauge.
*/
function setFeeGauge(IJBFeeGauge _feeGauge) external virtual override onlyOwner {
  // Store the new fee gauge.
  feeGauge = _feeGauge;
  emit SetFeeGauge(_feeGauge, msg.sender);
}
| Name | Data | 
|---|---|
SetFeeGauge | 
  | 
| Category | Description | Reward | 
|---|---|---|
| Optimization | Help make this operation more efficient. | 0.5ETH | 
| Low severity | Identify a vulnerability in this operation that could lead to an inconvenience for a user of the protocol or for a protocol developer. | 1ETH | 
| High severity | Identify a vulnerability in this operation that could lead to data corruption or loss of funds. | 5+ETH |