delvtech / agent0

Analysis & simulation repo for Delv
https://agent0.readthedocs.io/en/latest/
Apache License 2.0
45 stars 18 forks source link

change solvency invariant check to use rust api #1534

Open dpaiton opened 3 weeks ago

dpaiton commented 3 weeks ago

The solvency invariant check is presently written out in Python. We should be using a binding from the Rust API because 1) we have specific rounding behavior we prefer when checking this, and 2) the check itself is also used in the max long & max short flows.