Skip to main content

setFeelessAddress

Contract: JBPayoutRedemptionPaymentTerminal​‌

Interface: IJBPayoutRedemptionPaymentTerminal

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:
    • _address is the address that can be paid towards while still bypassing fees.
    • _flag is a flag indicating whether the terminal should be feeless or not.
  • 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 flag for the terminal.

    // Set the flag value.
    isFeelessAddress[_address] = _flag;

    Internal references:

  2. Emit a SetFeelessAddress event with the relevant parameters.

    emit SetFeelessAddress(_address, _flag, msg.sender);

    Event references: