Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build a smart contract to lock funds over a time period #1

Open
palmerss opened this issue Nov 13, 2021 · 1 comment · Fixed by #13
Open

Build a smart contract to lock funds over a time period #1

palmerss opened this issue Nov 13, 2021 · 1 comment · Fixed by #13

Comments

@palmerss
Copy link
Collaborator

palmerss commented Nov 13, 2021

Ideally the smart contract takes the following format

  • User sends transaction with time (in seconds) and some number of whatever asset to smart contract
  • smart contract stores the asset in escrow, sets variables for time to release
  • if the user attempts to claim rewards early, rewards are not dispensed
  • if user attempts to claim rewards after the allotted time then rewards are returned to the user
@palmerss palmerss added this to In progress in smartContracts Nov 13, 2021
@palmerss
Copy link
Collaborator Author

list of TODOs as of the timestamp of this comment
*pound our head against the wall writing all test cases we can think of
*run those test cases on the testnet
*remember to write test cases that check global and local variables, not just call end states
*run those cases on the main net
*figure out an onboard for @AkitaInuASA which can go three ways

1.) We create the transaction files for you and you sign the manually. However they don't have experience in setting up an Algorand node so they aren't familar with how to sign transactions manually
2.) We find some sort of online tool that gives us a nice GUI that can facilitate the transactions (I have no clue if something like this exists, but it should, I even asked in the Algorand discord...no solid responses...
3.) We might be able to set up WalletConnect and send them QR codes that send the transactions through their Algorand mobile app

I believe option 3 would be the most powerful impact

@palmerss palmerss linked a pull request Nov 17, 2021 that will close this issue
@palmerss palmerss moved this from In progress to Review in smartContracts Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

1 participant