Open suntzu93 opened 3 years ago
@davekaj The way I calculate that number is:
delegatedStake.shareAmount * currentIndexer.delegationExchangeRate
Is that accurate, or am I doing something wrong? :) Btw, when we tested on staging, it was accurate. Not sure why is it behaving differently on prod.
It's different per indexer the resulting balance if i delegate the same amount.
I delegated 2k to cryptovestor. This resulted in 2,7k delegated.
I undelegated 1K from cryptovestor. My total delegation lowed to 1.3k split accross 1K undelegating & 324.1 available to undelegate. I know there's a 1% fee, but that still doesn't add up.
Something similar happened with my delegation to https://testnet.thegraph.com/profile/?id=0x2ef7cd7a130a4bbbd637312a3b4a8e5365296e69
Delegate 1K, result 990,1 (possibly the fee). Undelegate 500, lowered to 490.3, split between 500 undelegating and -7 (negative !!) available.
and one UI BUG after undelegate :
Yeah, Dave says it's something in the subgraph. He'll look at it in a few hours, and we'll figure it out. Thanks for reporting @koen84 @suntzu93 I think it has something to do with delegationExchangeRate which relates to your allocations. Since the bug never showed in our staging/testing environment, but there we have no allocations. 🤔
Undelegate Number also wrong.
Video : https://streamable.com/rl9fa9
I delegated 2 transactions and 1000 for each.
https://rinkeby.etherscan.io/tx/0xbceb139031a5261c9865fd12f0dbb4ffb9909c85978f6248909f43e2064b211d
https://rinkeby.etherscan.io/tx/0xc6107a745cd9873fbc9c225a44b3ae965fc8005f824d1bf8bdff300a5962bea4
But the UI show 9k7.