feat(defi): add Aave V3 vault deposits - #9674
Conversation
491f65c to
77c23bd
Compare
|
|
ef37c25 to
9fb23bd
Compare
Add AAVE_V3 vault dispatch to sdk-core. Morpho and Aave V3 share the same ERC-4626 approve/deposit sequencing, so both protocols dispatch to a single depositToErc4626Vault path that issues the defiApprove and defiDeposit sendMany pair and returns the operationId linking them, with full and lite operation ID extraction coverage. Upgrade @bitgo/public-types to 6.69.0 in sdk-core, the only module consuming VaultProtocol.AAVE_V3, so the SDK accepts the published Aave protocol codec and clients can deposit into StataTokenV2 vaults instead of receiving an unsupported protocol error. Ticket: DEFI-857 Session-Id: 133a26bb-c1ee-4f99-886a-f4f1b1b017e5 Task-Id: 3624de8d-630a-454d-ba30230221e2
a27029a to
aaf7b8d
Compare
|
@claude review |
|
Claude finished @sachinBitgo's task —— View job Code Review for Aave V3 Vault DepositsTodo List:
Overall Assessment ✅This PR successfully adds Aave V3 vault deposit support by reusing the existing ERC-4626 flow. The implementation is clean, well-tested, and follows established patterns in the codebase. Detailed Review1. Dependency Update (
|
What
@bitgo/public-typesto6.69.0insdk-core, which includesVaultProtocol.AAVE_V3and its codec union.aave_v3SDK vault dispatch. Morpho and Aave V3 share the sameERC-4626 approve/deposit flow, so both dispatch to a single
depositToErc4626Vaultpath that creates the existingdefiApproveand
defiDeposittxRequest pair.DepositResultand add full/lite operation ID, missing ID, andfailure-propagation coverage.
Why
The SDK rejected Aave StataTokenV2 vaults as an unsupported protocol before
it could create deposit txRequests. Reusing the existing ERC-4626 flow lets
SDK clients deposit into Aave vaults without introducing new calldata or
wallet intent types.
Ticket: DEFI-857