Back to Overview

AMM + LT Hardening & YBLendingOracle

Quotation mark icon

About Yield Basis AMM + LT Hardening & YBLendingOracle

This is a focused delta review of hardening changes to AMM.vy, LT.vy , and the new YBLendingOracle.vy. The oracle receives most of our attention. It prices LT shares for external lending integrators, and its behaviour at the edge of the AMM's tradable region is where correctness and availability matter most.

Audit Summary

Functional correctness is satisfactory. Discovered medium-severity issues were resolved. Access control is high. Privileged operations follow existing project conventions and are gated by the Factory admin. Arithmetic precision is good. AMM and YBLendingOracle share a system-wide LEVERAGE = 2 invariant enforced by the Factory. However, YBLendingOracle users need to be aware and careful about rounding direction of the price computations.

Findings related to gas efficiency were resolved.

Findings marked as acknowledged are acceptable subject to the operational assumptions and conditions documented alongside each. If those conditions cease to hold, the findings need to be revisited.

In summary, we find that the codebase provides a satisfactory level of security.

It is important to note that security audits are time-boxed and cannot uncover all vulnerabilities. They complement but don't replace other vital measures to secure a project.