Skip to content

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
…ve Asset (#2)

* fix: [audit-m1] rugpull by exploited executor key with malicious Derive Asset

* alternative fix: use manager whitelist  (#5)

* fix2: use manager whitelist instead

* chore: makes USDC work
* fix: informational fixes

* chore: correct fix of transfer

* fix: correct fix of rescueToken
@0xdomrom 0xdomrom merged commit 290518e into derivexyz:master Jun 17, 2025
1 check passed
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