Thanks for your answer! Unfortunately, I've alread... @officialjustlend

Asked 1139 days ago
Viewed 89 times
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)

asked 1139 days ago

1 Answers

Answer:Based on your question and the transactions you have tested, it appears that the issue is with the implementation of the enterMarket function in your contract. Specifically, it appears that you are passing the address of jl as the argument to jl.enterMarket when it should be the address of jtoken in order to enable it as collateral. This is even specified in the function declaration of IJustLend interface, which states that the argument should be the address of jtoken. To resolve this issue, you should make sure to pass the address of jtoken as the argument to jl.enterMarket.
answered 1139 days ago
0
And indeed, entering market hasn't succeeded. The issue with implementation of enterMarket in your contract is that you pass address of jl as argument to jl.enterMarket when it has to be address of jtoken to enable as collateral (as even specified in function declaration in your IJustLend interface: function enterMarket(address jtoken) external returns (uint256);).
answered 1139 days ago

Subscribe to our newsletter

* indicates required

Thank you for subscribing!