Juan Ignacio Pérez Sacristán

Results 35 comments of Juan Ignacio Pérez Sacristán

The flash loan mockup seems to be working ok now. Tests run Ok. 3 loan attacks are prevented by the NotInTheSameBlock check. Tests are not yet showing explicit values of...

MintLoanAndBorrow.test.js: it("Loan attack w/o FL should success") // Conclusion: // With low liquidity of 1.1 SUSD, trading 1 SUSD (high utilization: ~91%) // yields a daily interest of 0.74% //...

Profiling interest and deposit values: 104/100 (1.040 SUSD): sentAmounts[1] = 1055799386991083000 (1.055 SUSD) _underlyingBalance() = 1040000000000000000 (1.040 SUSD) _borrowOrTrade::sentAmounts borrow:: sentAmounts[1] = withdrawAmount; borrow::withdrawAmount marginTrade:: sentAmounts[1] = totalDeposit; /// Total...

Conclusion: Interest curve is not very extreme. It's value swifts around 1.76% (higher bound) and 0.47% (lower bound) w/ liquidities ranging from 1.050 SUSD to 100 SUSD and margin trading...

PR: https://github.com/DistributedCollective/Sovryn-smart-contracts/pull/255