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

feat: Intent Contracts #4

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

antoncoding
Copy link
Contributor

@antoncoding antoncoding commented Feb 16, 2025

TLDR

  • IntentExecutorBase: a shared function across all intent contracts (might be renamed to IntentBase if more features are added).
    • Add rescueToken so the owner can transfer stuck ERC20 tokens.
  • SubaccountDepositIntent: Allows executors to move funds into subaccounts.
  • WithdrawBridgeIntent: Allows executors to move funds off Derive through bridges
  • StakeDRVIntent: Allows executors to stake approved DRV to staking contract

Running the test

forge test --match-contract FORK_LYRA_ --fork-url https://rpc.lyra.finance/

Notes

  • The test contract is still prefixed with FORK_LYRA_, not FORK_DERIVE to remain compatible with existing CICD.

@antoncoding antoncoding changed the title feat: DepositIntent feat: Deposit Intent Feb 16, 2025
@antoncoding antoncoding changed the title feat: Deposit Intent feat: Intent Contracts Feb 17, 2025
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

Successfully merging this pull request may close these issues.

2 participants