solace-fi / solace-core

solace.fi smart contracts
GNU General Public License v3.0
6 stars 3 forks source link

feat(Product): more tests for submitClaim #147

Closed leonardishere closed 3 years ago

leonardishere commented 3 years ago

submitClaim() used to take the user's cTokens, redeem for underlying, uniswap for eth, then deposit coverAmount of eth into escrow. The swap step added overhead and another piece that could break so it was removed. Now the user will receive underlying immediately and the lossAmount in escrow