1Hive / time-lock-app

The Time Lock app enables Aragon organizations to require users transfer or temporarily lock tokens before forwarding an intent.
GNU General Public License v3.0
16 stars 11 forks source link

Use safe transfer and update canForward #16

Closed fabriziovigevani closed 5 years ago

fabriziovigevani commented 5 years ago

Changed the requirement for canForward to check only if the app is initialized. This is needed for the approval transaction to work when the client attempts to get the transaction path.

What is needed as a consequence of this change is to add SafeERC20 lib to use safeTransferFrom function so we can check that the transfer is made successfully before forwarding the action.

Updated tests to take into account this changes.

You can now deploy your DAO using the template and mint some tokens from the tokenManager app. This will require for you to approve 20 LKT tokens to the lock app first and then create the vote.

UI is still missing, you can see the design in #15