osmosis-labs / isotonic

Smart Contracts for the Lendex Protocol
MIT License
1 stars 0 forks source link

Acceptance/regression test crate #140

Closed uint closed 2 years ago

uint commented 2 years ago

Closes #71

ueco-jb commented 2 years ago

Won't those tests duplicate cases from Credit Agency's tests?

uint commented 2 years ago

Won't those tests duplicate cases from Credit Agency's tests?

Personally I'd move anything that looks like an acceptance/system test to this new crate

uint commented 2 years ago

I moved tests around rounding issues here from the market contract. In this test crate we have a proper CA, so we get proper credit line responses so we can simulate it more accurately.

...aaaaand some tests are failing. There are still cases where we have rounding issues in a deposit(x) -> withdraw(x) scenario. Ugh.

uint commented 2 years ago

Ha. Fixed rounding errors. Again.

...it's the last time, I swear.

Don't look at me like that!

uint commented 2 years ago

Rebased!