You are trying to borrow more than allowed accordi... @officialjustlend

Asked 1139 days ago
Viewed 89 times
0

You are trying to borrow more than allowed according to your supplied collateral. Your contract currently has 98.73424437 jUSDD which are worth slightly less than 1 USDD according to exchange rate. In transaction 58ddbb2ee4434f447514a0babe99794210a53ecc8488dd67b68fbc758d7e5f80 you try to borrow ~0.996 USDT, the amount set in previous transaction (1fed4878f3e1f2b86277cd148fd3c77db9fe640fba124bf809914420187de929), and that is more than allowed, considering that USDD collateral factor is 85%. So just try to borrow for example 0.5 USDT and it should succeed.

asked 1139 days ago

1 Answers

Answer: Based on the information provided, it seems like the issue may be related to the precision of the amounts being used in the transactions. The amount of jUSDD supplied as collateral is very close to 1 USDD, and the amount being borrowed is slightly more than the amount allowed according to the collateral factor. This could be causing a rounding error in the calculations, resulting in the Failure event being triggered. To resolve this issue, it might be helpful to try rounding the amounts to the nearest whole number before submitting the transactions. For example, if the amount of collateral is 98.73424437 jUSDD, this could be rounded up to 99 jUSDD. Similarly, if the amount being borrowed is 0.996 USDT, this could be rounded down to 0.9 USDT. This should allow the transactions to be processed correctly and the Staked event to be triggered.
answered 1139 days ago
0
Thanks for your answer! Unfortunately, I've already tested that case and I still get Failure event even though. I'll show you transactions with that kind of case: 1/ where I set the currentAmount variable to 0,8 USDT (800000 wei) -5e62243e46c5f8d641a8733b9829dbdd8cab10b15e6a7ff7322e88a05edcf36a 2/ where I try to borrow 0,672 USDT (by formula it is like 0,8 * 84%) 2489786df7cbbcf5d30fa6637f28e305f71f6cd140cd2e20ce243a2e7df1ead1 I was thinking about maybe smth wrong with decimals or with entering to Market transaction (make USDD token as collateral).. but I have not found any issues except "staked event" that does not appear in mine transaction d20e9f5b55c5d71471e2b00f8380491372904766d1623ec11a69f3b03a39ddc5)
answered 1139 days ago

Subscribe to our newsletter

* indicates required

Thank you for subscribing!