Skip to content

Simple Aragon App forwarder that requires a user to deposit fees before executing an action

License

Notifications You must be signed in to change notification settings

Harthor/tollgate

 
 

Repository files navigation

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:

About

Simple Aragon App forwarder that requires a user to deposit fees before executing an action

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 60.8%
  • Solidity 39.2%