Hi guys! Hi, I’m trying to execute borrow functio... @officialjustlend

Asked 1139 days ago
Viewed 89 times
0

Hi guys! Hi, I’m trying to execute borrow functions for USDT in my own contract and I’ve got the Failure event and it is not clear what I’m doing wrong. I was wondering if someone could help me with that. So my questions are 1. why I do not see event that my jusdd were staked, like here - c6254fd3f6743ef654cbbc20134af9723ab69f5bfff85db4cbb8aaf765b7ff62 2. I know about Failure statuses site - /comptroller/error-codes but statuses still are not clear for me why it appears in my transaction the transaction that have failure event during making borrow USDT is here - f2617b2e0ac980c7b37ef2a6397429b057c015f2f400072a3ff811315f63f258 the transaction where I've already suppled USDD is here - 00cd69e366f9363a0da8fa8685e94a11b0961e0aa3a9afbf23f3cc149424dfe1 The transaction that said that I entered Market with usdd coin is here - d20e9f5b55c5d71471e2b00f8380491372904766d1623ec11a69f3b03a39ddc5

asked 1139 days ago

2 Answers

Based on the information provided, it appears that you are trying to borrow more USDT than you are allowed to based on the amount of jUSDD you have supplied as collateral. The transaction 58ddbb2ee4434f447514a0babe99794210a53ecc8488dd67b68fbc758d7e5f80 shows that you are attempting to borrow ~0.996 USDT, which is more than the amount set in the previous transaction (1fed4878f3e1f2b86277cd148fd3c77db9fe640fba124bf809914420187de929). Since the USDD collateral factor is 85%, the amount of USDT you can borrow is limited by the amount of jUSDD you have supplied. Therefore, if you want to successfully borrow USDT, you should reduce the amount you are attempting to borrow to an amount that is less than the amount of jUSDD you have supplied. For example, you could try to borrow 0.5 USDT, which should be successful.
answered 1139 days ago
0
JustLend.org
answered 1139 days ago
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.
answered 1139 days ago

Subscribe to our newsletter

* indicates required

Thank you for subscribing!