RevenueAggregator

Path

contracts/middleware/RevenueAggregator.sol

Contract Interface

Events

WithdrawStatus (address,bool,bytes)

Emits when a withdrawal takes place

  • Parameters

  • address path: The address of the revenue path

  • bool status: Whether the withdrawal suceeded

  • bytes result

Methods

withdrawPathErc20 nonpayable (address[],address,address)

Batch withdrawal request for ERC20 across revenue paths

  • Parameters

  • address[] paths: List of revenue paths

  • address targetWallet: The wallet for which the withdrawal is being made

  • address tokenAddress: The ERC20 token for which the request is being made.

withdrawPathEth nonpayable (address[],address)

Batch withdrawal request for ETH across revenue paths

  • Parameters

  • address[] paths: List of revenue paths

  • address targetWallet: The wallet for which the withdrawal is being made

Last updated