script3 / yieldblox-beta

15 stars 5 forks source link

Repaying variable loan reduced amount owing on fixed loan #309

Open defj opened 2 years ago

defj commented 2 years ago

Was trying to test again for https://github.com/script3/yieldblox-beta/issues/307 and came across the following:

  1. Profile before repayment (highlighted loan is from the issue in https://github.com/script3/yieldblox-beta/issues/307 and is the fixed amount loan). image

  2. Attempt to repay EURT variable loan:

image

  1. After setting slippage to 1% (failed with 2%):

image

  1. Successful transaction as seen here: https://testnet.steexp.com/tx/2f48ca9e8e968478648032796b580c6c68c6ff7ffdd96b5857c9710be1db8194

  2. Profile shows both EURT fixed and variable amounts have been reduced:

image

Fixed amount EURT loan reduced from 5.31 to 0.01 Variable amount EURT load reduced from 845.80 to 1.06

Possibly this repayment action forced the refresh of the UI to reflect the previous repayment of the fixed loan which is the subject of https://github.com/script3/yieldblox-beta/issues/307

defj commented 2 years ago

@drew-boy @mootz12 Is this a bug? What is the RE: label?