Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

seeing weird calculation in current_percent intermittently #25

Closed
conradjohnson opened this issue Oct 3, 2021 · 6 comments
Closed

seeing weird calculation in current_percent intermittently #25

conradjohnson opened this issue Oct 3, 2021 · 6 comments

Comments

@conradjohnson
Copy link

ex:
current_percent will be humming along fine at 85%, then randomly will be calculated as 8.5%, trigger an auto borrow, but be beyond the borrow limit.

It is like the oracle is giving a number one decimal off and the current_percent is getting discounted by a factor of 10...

Logging isn't going on since the c5 update so difficult to see more here. Will try to find more.

@conradjohnson
Copy link
Author

can't seem to get the logging going. Is there a param I can use that I'm missing?

@conradjohnson
Copy link
Author

saw it again today, multiplied by 10x and borrowed against it as 1/10th of the calculation... as I have my settings low it allowed it to borrow and then corrected it once the oracle price corrected on the next block... it seems... Can I contact you another way to show you txs?

@conradjohnson
Copy link
Author

https://twitter.com/anchor_protocol/status/1445270878481043456

This might have something to do with it. Suspect other nodes feeding their API might have had the same issue. Would explain intermittent calculations.

@Philipp-Sc
Copy link

I thought so as well. Maybe possible to protect against this, but then it could lead times where liquidation is possible for a few seconds.

@conradjohnson
Copy link
Author

I have 12 hours of not seeing it. Will close if I can get a couple of days clear of it.

@unl1k3ly
Copy link
Owner

unl1k3ly commented Oct 7, 2021

it's mostly likely Oracles and instability of col5 in the 1st few days, it should be all running stable for now ! I'm closing this one, if you spot anything odd again, please, re open it. Cheers

@unl1k3ly unl1k3ly closed this as completed Oct 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants