Skip to content

[VPD-615] Add VIP to configure PendlePTVaultAdapter#681

Open
Debugger022 wants to merge 2 commits intomainfrom
feat/vpd-615
Open

[VPD-615] Add VIP to configure PendlePTVaultAdapter#681
Debugger022 wants to merge 2 commits intomainfrom
feat/vpd-615

Conversation

@Debugger022
Copy link
Contributor

Summary

  • Accept ownership of the PendlePTVaultAdapter contract on BSC mainnet
  • Grant ACM permissions (addMarket, pause, unpause) to timelocks and guardian
  • Register the PT-clisBNBx-25JUN2026 Pendle market with its corresponding vToken

Changes

VIP (vips/vip-700/bscmainnet.ts)

  • acceptOwnership() on PendlePTVaultAdapter (0x60Db...0B4a)
  • giveCallPermission for addMarket(address,address) → Normal Timelock
  • giveCallPermission for pause() / unpause() → Normal, Fast Track, Critical Timelocks + Guardian (9 grants total)
  • addMarket registering Pendle market 0x3C1a...59C5 with vToken 0x6d3B...435e

Simulation (simulations/vip-700/bscmainnet.ts)

  • Pre-VIP: verifies pendingOwner is Normal Timelock, no markets registered
  • Execution: validates RoleGranted (9), OwnershipTransferred (1), MarketAdded (1) events
  • Post-VIP: verifies ownership transfer, market registration, and all 9 ACM permission grants via hasRole

Test plan

npx hardhat test simulations/vip-700/bscmainnet.ts --fork bscmainnet

Accept ownership of PendlePTVaultAdapter, grant ACM permissions
(addMarket, pause, unpause) to timelocks and guardian, and register
the PT-clisBNBx-25JUN2026 Pendle market with its vToken.
@Debugger022 Debugger022 self-assigned this Mar 11, 2026
Add deposit, depositNative, withdraw, and redeemAtMaturity functional
tests with oracle staleness fixups for post-timelock time travel.
Fix ABI deposit() parameter mismatch and event indexed flags.
@fred-venus
Copy link
Contributor

fred-venus commented Mar 13, 2026

Do we know if Pendle has a testnet deployment? I'm thinking how could we test it?

Copy link
Contributor

@fred-venus fred-venus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@zed-venus
Copy link

Do we know if Pendle has a testnet deployment? I'm thinking how could we test it?

I think we can have the test on mainnet directly

@Debugger022
Copy link
Contributor Author

#681 (comment)
No, Pendle doesn't have any testnet deployments. They only support mainnet chains. We already have fork testing in place which tests against real Pendle contracts, so that covers correctness validation. If we need a live testnet environment for demos or frontend testing, we'd have to deploy mock Pendle contracts on BSC testnet, but that's not ideal — mocks can't replicate Pendle's AMM pricing curves, binary search approximation logic, SY wrapping/unwrapping mechanics, or market dynamics like slippage and liquidity depth

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.

3 participants