Skip to content
Simple Aragon App forwarder that requires a user to deposit fees before executing an action
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
contracts
migrations
test
.gitignore
.solcover.js
.soliumignore
.soliumrc.json
.travis.yml
LICENSE
README.md
arapp.json
manifest.json
package.json
truffle-config.js

README.md

Tollgate forwarder

A simple Aragon App forwarder that requires a user to deposit fees before executing an action.

Useful for when an organization wants to make actions public, but impose a customizable cost to prevent spam.

Note that this forwarder does not accept native ETH as a fee.

🚨 Not yet audited, use at your own risk

The Tollgate contract has not yet been professionally audited. It is simple, but use with this asterisk in mind.

Functionality

Initialization

Customizable via initialization for the following parameters:

  • feeToken: Token address for the fee token
  • feeAmount: Amount required from fee token (remember to adjust for token decimals)
  • feeDestination: Destination address to send the fees to

feeAmount

Adjustable via changeFeeAmount(), which is protected by CHANGE_AMOUNT_ROLE.

Note that feeAmount can be set to 0 to dynamically remove or impose a toll without having to modify the organization's permissions.

feeDestination

Adjustable via changeFeeDestination(), which is protected by CHANGE_DESTINATION_ROLE.

Development

For now, requires locally linked versions of:

You can’t perform that action at this time.