Case study 03
LendeXe Finance
Co-founder and Smart Contract Engineer · Jul 2023 - Jan 2024
Germany · DeFi lending
Co-founded a DeFi lending protocol and built its stablecoin and cross-chain lending contracts, audited by Certik.
Certik
audited contracts
90%
lower transaction costs on zkPolygon
70%
faster processing
The situation
A small founding team building a stablecoin and a cross-chain lending product, where a rounding error is not a cosmetic bug but lost money. Security had to be part of the product from the first line.
What I did
- Built the stablecoin and cross-chain lending contracts, and worked across protocol design, frontend and API. The protocol passed a Certik audit.
- Moved transactions to zkPolygon, which cut costs by about 90% and made processing about 70% faster.
- Found and fixed a critical decimal-mismatch bug in the lending maths and moved calculations from 8 to 18 decimal places, removing rounding errors that would have cost users and the company money at scale.
Stack
- Solidity
- Hardhat
- Ethers.js
- Web3.js
- Node.js
- TypeScript
- React
- MongoDB