-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Here is my full statistic before do repayment USDC with EURT as collateral
Let's make new repayment USDC with EURT collateral

it said I will repay $184 with 1EURT. Then I go to the confirmation tab and I found another weird thing.
first-row said 184.89 USDC = $184, while
second-row said 184.89 USDC = $1.16. THIS IS SO WEIRD. Seems frond-end is confusing to choosing path to trade.
let's try to do build transaction

look like the input is real when I repay 1 EURT become $184 USDC.
then I go to submit the transaction and success.
So, probably this is one way of HOW TO EXPLOITS THIS BUGS #366
here is the tx hash https://stellar.expert/explorer/testnet/tx/d290d021d3a742d6f364eeb4c2b8a522391f96cefca08e198f35ac0b99432cd1
and here my statistic after doing repayment

What I can say from this reproduce bugs,
-
Look at my EURT balance, before do repayment it's ~11,001 EURT then after repayment ~11,002 EURT. So, I got my 1 EURT that I used to repay to my wallet which is weird because should be my 1 EURT is used to pay my debt, but why is it going to my wallet instead gone to the lender or protocol?
-
look at my l00USDC, before do repayment it's 802,892.3661483 then after repayment 802,728.10076. so my dept is decreased around 164 USDC. then where is 20 USDC go? is it to paying interest fees? how expensive is it if it's true?
-
look at my y00EURT, before do repayment it's 28,900.0937852 then after repayment 28,899.892681. so my dept is real decrease 1 EURT as expected
from that's 3 things, the first point is very weird. How protocol can payback the lender if the protocol does not even get repaid from the borrower? why my repayment is back in my wallet instead go to protocol? the second point is also weird, because I don't know where 20 USDC go.




