跳到主要内容

JBETHPaymentTerminal3_1_1

Manages all inflows and outflows of ETH funds into the protocol ecosystem.

Git Source

Mainnet: 0x457cD63bee88ac01f3cD4a67D5DCc921D8C0D573

Goerli: 0x82129d4109625F94582bDdF6101a8Cd1a27919f5

Inherits: JBPayoutRedemptionPaymentTerminal3_1_1

Functions

_balance

Checks the balance of tokens in this contract.

function _balance() internal view override returns (uint256);

Returns

NameTypeDescription
<none>uint256The contract's balance, as a fixed point number with the same amount of decimals as this terminal.

constructor

constructor(
uint256 _baseWeightCurrency,
IJBOperatorStore _operatorStore,
IJBProjects _projects,
IJBDirectory _directory,
IJBSplitsStore _splitsStore,
IJBPrices _prices,
address _store,
address _owner
)
JBPayoutRedemptionPaymentTerminal3_1_1(
JBTokens.ETH,
18,
JBCurrencies.ETH,
_baseWeightCurrency,
JBSplitsGroups.ETH_PAYOUT,
_operatorStore,
_projects,
_directory,
_splitsStore,
_prices,
_store,
_owner
);

Parameters

NameTypeDescription
_baseWeightCurrencyuint256The currency to base token issuance on.
_operatorStoreIJBOperatorStoreA contract storing operator assignments.
_projectsIJBProjectsA contract which mints ERC-721's that represent project ownership and transfers.
_directoryIJBDirectoryA contract storing directories of terminals and controllers for each project.
_splitsStoreIJBSplitsStoreA contract that stores splits for each project.
_pricesIJBPricesA contract that exposes price feeds.
_storeaddressA contract that stores the terminal's data.
_owneraddressThe address that will own this contract.

_transferFrom

Transfers tokens.

function _transferFrom(address _from, address payable _to, uint256 _amount) internal override;

Parameters

NameTypeDescription
_fromaddressThe address from which the transfer should originate.
_toaddress payableThe address to which the transfer should go.
_amountuint256The amount of the transfer, as a fixed point number with the same number of decimals as this terminal.