setFeelessAddress
Contract: JBPayoutRedemptionPaymentTerminal
Interface: IJBPayoutRedemptionPaymentTerminal
- Step by step
 - Code
 - Events
 - Bug bounty
 
Sets whether projects operating on this terminal can pay towards the specified address without incurring a fee.
Only the owner of this contract can set addresses as feeless.
Definition
function setFeelessAddress(address _address, bool _flag)
  external
  virtual
  override
  onlyOwner { ... }
- Arguments:
_addressis the address that can be paid towards while still bypassing fees._flagis a flag indicating whether the terminal should be feeless or not.
 - 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 flag for the terminal.
// Set the flag value.
isFeelessAddress[_address] = _flag;Internal references:
 - 
Emit a
SetFeelessAddressevent with the relevant parameters.emit SetFeelessAddress(_address, _flag, msg.sender);Event references:
 
/**
  @notice
  Sets whether projects operating on this terminal can pay towards the specified address without incurring a fee.
  @dev
  Only the owner of this contract can set addresses feeless.
  @param _address The address that can be paid towards while still bypassing fees.
  @param _flag A flag indicating whether the terminal should be feeless or not.
*/
function setFeelessAddress(address _address, bool _flag)
  external
  virtual
  override
  onlyOwner
{
  // Set the flag value.
  isFeelessAddress[_address] = _flag;
  emit SetFeelessAddress(_address, _flag, msg.sender);
}
| Name | Data | 
|---|---|
SetFeelessAddress | 
  | 
| 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 |