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

[actions] Create simple batch lock related actions #3

Open
SudoMati opened this issue Jan 18, 2024 · 0 comments
Open

[actions] Create simple batch lock related actions #3

SudoMati opened this issue Jan 18, 2024 · 0 comments

Comments

@SudoMati
Copy link

Batch Lock Tokens

BatchLockTokens

  • Will accept parameters with duration (or amount of blocks or end block height) and an array of wallets and tokens per wallet
  • Will create some unique identifier that can be referred to (or can refer to the escrow wallet, see below point).
  • Hold tokens in an (arbitrary) escrow wallet (or similar) that only whitelisted wallets (from the array param) can access to claim their tokens after the duration has ended

Claim Locked Tokens

ClaimLockedTokens

  • Accepts the unique identifier/escrow wallet that refers to the locked tokens
  • Checks if the wallet that is calling the action is actually whitelisted and if the duration has passed
  • Transfers the tokens to the wallet calling the action if all conditions are met

In general, for both, API endpoints will need to be available so that third-party integrations can be done easily.

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