Skip to content

Use @naviprotocol/lending v2 for flash loans - #162

Merged
11felix merged 4 commits into
mainfrom
feature/navi-sdk-v2
Jul 23, 2026
Merged

Use @naviprotocol/lending v2 for flash loans#162
11felix merged 4 commits into
mainfrom
feature/navi-sdk-v2

Conversation

@11felix

@11felix 11felix commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Replaces the vendored Navi flash-loan helpers (src/vendor/naviFlashloan.ts) with @naviprotocol/lending@^2.0.3 as a runtime dependency (v2 is @mysten/sui v2-native and import-safe). Adds a local .d.ts shim since NAVI v2's split declarations don't resolve under moduleResolution: NodeNext.

@11felix
11felix requested review from OctoSauce, Zorag44 and jangid July 20, 2026 16:13
Comment thread src/naviprotocol-lending.d.ts
@11felix
11felix requested a review from Zorag44 July 22, 2026 14:23

@jangid jangid left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

operate.md full-sweep: clean. Pure dependency swap to @naviprotocol/lending v2 for flash loans — buildFlashRepayTransaction borrow/repay/fee logic untouched; verified (read-only, from the published 2.0.3 tarball) that real signatures match the shim and the removed vendored helpers exactly, same Move targets (flash_loan_with_ctx/_v2/flash_repay_with_ctx), borrow/repay stay balanced. Dependency is exact-pinned 2.0.3 with NO lifecycle scripts (no supply-chain exposure of the #85 class); new transitives are benign + integrity-pinned. CI green. Prior review finding (shim type-drift) resolved by the exact pin. Approvals: 2/2 — meets threshold; merge-ready pending your merge decision.

@11felix
11felix merged commit f9768ec into main Jul 23, 2026
3 checks 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.

4 participants