Skip to content

feat: WASM binary decompiler, component test suites, flash loan, and staking pool - #1702

Merged
ayomideadeniran merged 1 commit into
StellarDevHub:mainfrom
kokobutter-web:feat/batch-1340-1342-1652-1653
Oct 19, 2026
Merged

ayomideadeniran merged 1 commit into
StellarDevHub:mainfrom
kokobutter-web:feat/batch-1340-1342-1652-1653

Conversation

@kokobutter-web

Copy link
Copy Markdown
Contributor

Summary

This pull request resolves four epics across Soroban smart contracts and frontend tooling in Web3-Student-Lab:

1. [SC-031] Flash-Loan Provider Contract (Closes #1652)

  • Added contracts/lending_pool/src/flash_loan.rs with uncollateralized flash loans.
  • Enforces strict same-transaction repayment plus a 0.09% protocol fee (9 BPS) directly to pool reserves.
  • Guarded against reentrancy using temporary storage locks and verified with comprehensive unit tests in contracts/lending_pool/src/lib.rs.

2. [SC-032] Continuous Yield Farming & Staking Pool (Closes #1653)

  • Added contracts/lending_pool/src/staking_rewards.rs implementing Synthetix-style (1)$ constant-time staking rewards.
  • Uses high-precision 128-bit WAD fixed-point math (10^18) with reward debt tracking to prevent dilution and out-of-gas errors.
  • Exposed contract endpoints on LendingPool (init_staking, stake, unstake, claim_reward, earned) with unit tests verifying continuous time-based reward accumulation and claims.

3. [FE-HARD-44] Drag-and-Drop WASM Binary Decompiler & Disassembly Inspector (Closes #1340)

  • Enhanced frontend/src/app/wasm-analyzer/page.tsx with an interactive drag-and-drop zone with active hover states.
  • Displays computed byte size and formatted KB, computes SHA-256 binary hash digest in real time.
  • Inspects and displays WebAssembly section breakdown, exported functions and symbols, and linear memory section limits.

4. [FE-HARD-46] Comprehensive Component Unit & Integration Test Suite (Closes #1342)

  • Added mocks for Freighter API in frontend/src/mocks/freighter.ts and frontend/jest.setup.js.
  • Implemented CallPanel and WalletModal interactive playground components.
  • Added comprehensive React Testing Library integration test suite in frontend/src/components/playground/__tests__/PlaygroundIntegration.test.tsx covering DeployPanel, CallPanel, StorageViewer, and WalletModal.
  • Added unit tests for WASM Analyzer in frontend/src/app/wasm-analyzer/__tests__/page.test.tsx.

Closes #1340, Closes #1342, Closes #1652, Closes #1653

…staking pool

- Issue StellarDevHub#1340: Add drag-and-drop WASM binary decompiler and disassembly inspector with SHA-256 digest and memory limits
- Issue StellarDevHub#1342: Add comprehensive component unit and integration test suites with Freighter mocks covering DeployPanel, CallPanel, StorageViewer, and WalletModal
- Issue StellarDevHub#1652: Implement flash-loan provider contract with single-transaction repay enforcement and 0.09% fees
- Issue StellarDevHub#1653: Implement continuous yield farming and staking pool with precision reward-per-token accounting

Closes StellarDevHub#1340, Closes StellarDevHub#1342, Closes StellarDevHub#1652, Closes StellarDevHub#1653
@vercel

vercel Bot commented Oct 16, 2026

Copy link
Copy Markdown

@kokobutter-web is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Oct 16, 2026

Copy link
Copy Markdown

@kokobutter-web Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

.map((b) => b.toString(16).padStart(2, '0'))
.join('');
}

@ayomideadeniran
ayomideadeniran merged commit cf5a836 into StellarDevHub:main Oct 19, 2026
11 of 18 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

3 participants