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

Create a fund manager contract living on L2 #8

Open
bitcoinwarrior1 opened this issue May 1, 2021 · 1 comment
Open

Create a fund manager contract living on L2 #8

bitcoinwarrior1 opened this issue May 1, 2021 · 1 comment
Assignees

Comments

@bitcoinwarrior1
Copy link
Member

  • Handle deposits and balances for users
  • Move a certain percentage of the funds per cycle
  • Move the funds on a specified interval e.g. weekly
  • Handle withdrawals on a pro rata basis
@bitcoinwarrior1
Copy link
Member Author

Update: for now we have decided on a simpler approach that is as follows:

  1. User approves DCA manager contract to move their funds e.g. DAI
  2. User signs multiple messages specifying how much of their position they wish to sell based on certain time lines e.g. 100 DAI per week for WETH
  3. User gives signed messages to relayer
  4. Relayer publishes them to the contract and the order gets swapped provided it meets the requirements

bitcoinwarrior1 added a commit that referenced this issue May 9, 2021
allow swaps to be done on behalf of user via signed messages #8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant