跳到主要内容

JBFeelessAddresses

Git Source

Inherits: Ownable, IJBFeelessAddresses, IERC165

Stores a list of addresses that shouldn't incur fees when sending or receiving payments.

State Variables

isFeeless

Check if the specified address is feeless.

Feeless addresses can receive payouts without incurring a fee.

Feeless addresses can use the surplus allowance without incurring a fee.

Feeless addresses can be the beneficary of cash outs without incurring a fee.

mapping(address addr => bool) public override isFeeless;

Functions

constructor

constructor(address owner) Ownable(owner);

Parameters

NameTypeDescription
owneraddressThis contract's owner.

supportsInterface

Indicates whether this contract adheres to the specified interface.

See IERC165-supportsInterface.

function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool);

Parameters

NameTypeDescription
interfaceIdbytes4The ID of the interface to check for adherence to.

Returns

NameTypeDescription
<none>boolA flag indicating if the provided interface ID is supported.

setFeelessAddress

Sets whether an address is feeless.

Can only be called by this contract's owner.

function setFeelessAddress(address addr, bool flag) external virtual override onlyOwner;

Parameters

NameTypeDescription
addraddressThe address to set as feeless or not feeless.
flagboolWhether the address should be feeless (true) or not feeless (false).