Skip to content

Add Lucidly syUSD reserve adapter#44

Merged
Pattermesh merged 1 commit into
kcolbchain:mainfrom
bonginkan:codex/lucidly-adapter-20
Jun 3, 2026
Merged

Add Lucidly syUSD reserve adapter#44
Pattermesh merged 1 commit into
kcolbchain:mainfrom
bonginkan:codex/lucidly-adapter-20

Conversation

@MyTH-zyxeon
Copy link
Copy Markdown
Contributor

Summary

  • add ILucidlyVault and LucidlyAdapter for parking excess USDC-style reserves into a Lucidly syUSD-style vault
  • support configurable liquid reserve ratio, rebalance(), unpark(amount), epoch-based harvestYield(), and vault pause checks
  • add MockLucidlyVault plus Foundry coverage for rebalancing, partial unpark, access control, pause handling, and yield harvest
  • document the reserve parking flow in the README

Closes #20

Validation

  • forge fmt --check contracts/interfaces/ILucidlyVault.sol contracts/extensions/LucidlyAdapter.sol contracts/mocks/MockLucidlyVault.sol forge-test/LucidlyAdapter.t.sol
  • git diff --check
  • FOUNDRY_LIBS=["node_modules","/tmp/codex-forge-libs"] FOUNDRY_TEST=forge-test forge test --match-contract LucidlyAdapterTest -vv (6 passed)
  • FOUNDRY_LIBS=["node_modules","/tmp/codex-forge-libs"] FOUNDRY_TEST=forge-test forge test -vv (65 passed)
  • npx hardhat compile (passes; local Node v25 unsupported warning from Hardhat)

Notes

  • Tests use MockLucidlyVault only; no mainnet Lucidly calls are made.
  • The interface intentionally stays narrow until the final Lucidly Arbitrum contract spec is confirmed.

@abhicris
Copy link
Copy Markdown
Contributor

🤖 Audit verdict: safe

LucidlyAdapter implements standard ERC4626 vault integration with proper access control, safe asset handling (SafeERC20, balance-delta pattern), no malicious code, and no security vulnerabilities.

Audited by the kcolbchain PR pipeline. See pipeline docs.

@Pattermesh Pattermesh force-pushed the codex/lucidly-adapter-20 branch from 8a60a6c to 7741243 Compare June 3, 2026 12:20
@Pattermesh Pattermesh merged commit 3cec2db into kcolbchain:main Jun 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lucidly syUSD vault adapter (ILucidlyVault interface + wrapper)

3 participants