Skip to content

Releases: aragonone/court-presale-activate

v1.3.0

13 Feb 12:56
663ff3d
Compare
Choose a tag to compare

Feature

This release provides a new Jurors Registry wrapper to allow users to buy ANJ tokens directly from Uniswap and stake them into Aragon Court

v1.2.0

07 Feb 10:03
ac27f6d
Compare
Choose a tag to compare

Features

This new version of the CourtPresaleActivate contract adds the ability to exchange ETH and arbitrary tokens for ANT to be used in the ANJ presale, all in one transaction through Uniswap.

v1.0.0

16 Dec 13:11
Compare
Choose a tag to compare

Court Presale Activate

This repo provides a wrapper to allow jurors of Aragon Court converting ANT into ANJ and activating it in a single transaction.

Receive approval

This contract only exposes the following function. It should be called by the contribution token of Aragon Court, in this case ANT.

/**
* @dev This function must be triggered by the contribution token approve-and-call fallback.
*      It will pull the approved tokens and convert them into the presale instance, and activate the converted tokens into a
*      jurors registry instance of an Aragon Court.
* @param _from Address of the original caller (juror) converting and activating the tokens 
* @param _amount Amount of contribution tokens to be converted and activated
* @param _token Address of the contribution token triggering the approve-and-call fallback
* @param Extra-data not used in this function, declared only for compatibility reasons 
*/

function receiveApproval(address _from, uint256 _amount, address _token, bytes calldata) external;