Skip to content

Try to repay debt with tiny amount, but my repayment go to my wallet instead of go to protocol. #368

@starlog20

Description

@starlog20

Here is my full statistic before do repayment USDC with EURT as collateral

image

image
image

Let's make new repayment USDC with EURT collateral
image

it said I will repay $184 with 1EURT. Then I go to the confirmation tab and I found another weird thing.

image

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
image image

look like the input is real when I repay 1 EURT become $184 USDC.
then I go to submit the transaction and success.

image

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
image

What I can say from this reproduce bugs,

  1. 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?

  2. 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?

  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingprotocolSomething with the protocol isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions