Storx
|
|
July 27, 2017, 03:21:08 AM |
|
I think I figured it out after looking at the Yiimp code. The relevant function that I believe is causing the issues is as follows: In web\yaamp\core\backend\markets.php on line 203 function AverageIncrement($value1, $value2) { $percent = 80; $value = ($value1*(100-$percent) + $value2*$percent) / 100;
return $value; }
This function is used for pretty much every price lookup from the markets. The purpose of this function is to create a weighted value based upon 20% of value1 and 80% of value2. The reason for doing it is to create a trailing average for price moves. As an example in the price look up for any of the exchanges. web\yaamp\core\exchange\bittrex.php on line 61-63 $price2 = ($m->Bid + $m->Ask)/2; $market->price2 = AverageIncrement($market->price2, $price2); $market->price = AverageIncrement($market->price, $m->Bid);
The purpose of this code is to first get the average of the Bid and Ask and put it in price2. Next it sets the price2 value to the weighted value of the previous price2 and the current price2. This would be a 20% weight of the old price + 80% value of the new price. Finally it sets the price value to the weighted value of the previous price and the current bid. This would be a 20% weight of the old bid + 80% value of the new bid. On paper this seems reasonable because if the price fluctuates by a significant margin it will trail that value and essentially smooth the movement out. This is significant because if you look at the AverageIncrement function and consider that if the previous price being passed in value1 does not exist then the function returns 80% of the current price2 or Bid. So I think what might be happening is somehow the object is falling out of scope or some other issue that is causing that value1 to get a 0 amount and therefore the values coming out are 80% of the value they should be. As a workaround until it can be determined if the values are being passed incorrectly or falling out of scope a line to check if value1 is 0 and if it is return the value2 should work around the issue. I'm going to likely try and setup a Yiimp instance on a test VM and see if I can get values out of it to determine for sure if this is the problem. I'll let you know what I find. Crackfoo if you want to perhaps add some debug logging like the following it may be quicker for you to see: function AverageIncrement($value1, $value2) { $percent = 80; $value = ($value1*(100-$percent) + $value2*$percent) / 100;
debuglog("AverageIncrement: $value1, $value2");
return $value; }
Or report it to Tpruvot and see if he can look at it. I'm pretty sure this is what is causing the issues. Good work man, honestly i hope we can figure this stuff out and get back to normal payouts, i honestly want to stay on on this pool, because i am not a full time miner and need the mining operation to convert for me automatic when im busy working my normal 9to5 job... just hope crackfoo can get to the bottom of this....
|
- GPUs Mining : 128 (Updated 3/7/18) // CPUs Mining : 19 (Updated 2/23/18)
|
|
|
jmayniac
Newbie
Offline
Activity: 77
Merit: 0
|
|
July 27, 2017, 02:13:32 PM Last edit: July 27, 2017, 03:27:34 PM by jmayniac |
|
I think I figured it out after looking at the Yiimp code. The relevant function that I believe is causing the issues is as follows: In web\yaamp\core\backend\markets.php on line 203 function AverageIncrement($value1, $value2) { $percent = 80; $value = ($value1*(100-$percent) + $value2*$percent) / 100;
return $value; }
This function is used for pretty much every price lookup from the markets. The purpose of this function is to create a weighted value based upon 20% of value1 and 80% of value2. The reason for doing it is to create a trailing average for price moves. As an example in the price look up for any of the exchanges. web\yaamp\core\exchange\bittrex.php on line 61-63 $price2 = ($m->Bid + $m->Ask)/2; $market->price2 = AverageIncrement($market->price2, $price2); $market->price = AverageIncrement($market->price, $m->Bid);
The purpose of this code is to first get the average of the Bid and Ask and put it in price2. Next it sets the price2 value to the weighted value of the previous price2 and the current price2. This would be a 20% weight of the old price + 80% value of the new price. Finally it sets the price value to the weighted value of the previous price and the current bid. This would be a 20% weight of the old bid + 80% value of the new bid. On paper this seems reasonable because if the price fluctuates by a significant margin it will trail that value and essentially smooth the movement out. This is significant because if you look at the AverageIncrement function and consider that if the previous price being passed in value1 does not exist then the function returns 80% of the current price2 or Bid. So I think what might be happening is somehow the object is falling out of scope or some other issue that is causing that value1 to get a 0 amount and therefore the values coming out are 80% of the value they should be. As a workaround until it can be determined if the values are being passed incorrectly or falling out of scope a line to check if value1 is 0 and if it is return the value2 should work around the issue. I'm going to likely try and setup a Yiimp instance on a test VM and see if I can get values out of it to determine for sure if this is the problem. I'll let you know what I find. Crackfoo if you want to perhaps add some debug logging like the following it may be quicker for you to see: function AverageIncrement($value1, $value2) { $percent = 80; $value = ($value1*(100-$percent) + $value2*$percent) / 100;
debuglog("AverageIncrement: $value1, $value2");
return $value; }
Or report it to Tpruvot and see if he can look at it. I'm pretty sure this is what is causing the issues. I support this effort 100%. If you need anything from me, let me know. Jaerin, Why don't you file an issue here: https://github.com/tpruvot/yiimp/issuesIf that goes well, you can then submit a pull request. Crackfoo, Can you please look into this? I would really like to know your thoughts.
|
|
|
|
Jaerin
|
|
July 27, 2017, 04:36:54 PM |
|
I support this effort 100%. If you need anything from me, let me know. Jaerin, Why don't you file an issue here: https://github.com/tpruvot/yiimp/issuesIf that goes well, you can then submit a pull request. Crackfoo, Can you please look into this? I would really like to know your thoughts. I don't really want to report an issue until I have the full evidence to support that it actually is the issue. Not to mention Tpruvot doesn't really support the exchange portion of Yiimp so he may not care. I will once I can get it installed and verify the pricing is as I suspect it may be. The code has logic that makes sense as to why the discrepancy is there, but I don't want to jump the gun.
|
|
|
|
crackfoo (OP)
Legendary
Offline
Activity: 3556
Merit: 1126
|
|
July 27, 2017, 05:10:24 PM |
|
that looks kinda promising. I don't really understand how it comes into play but I'll see if we can.
|
ZPOOL - the miners multipool! Support We pay 10 FLUX Parallel Assets (PA) directly to block rewards! Get paid more and faster. No PA fee's or waiting around for them, paid instantly on every block found!
|
|
|
jmayniac
Newbie
Offline
Activity: 77
Merit: 0
|
|
July 27, 2017, 05:37:15 PM |
|
I don't really want to report an issue until I have the full evidence to support that it actually is the issue. Not to mention Tpruvot doesn't really support the exchange portion of Yiimp so he may not care.
I will once I can get it installed and verify the pricing is as I suspect it may be. The code has logic that makes sense as to why the discrepancy is there, but I don't want to jump the gun.
I guess I was more suggesting opening an issue to start a dialog with Tpruvot so he can take a look at it as well, since he is very familiar with it and why it was done the way it was. Maybe he has some insight that was overlooked. No sense in doing an entire install and start poking through it if he can tell you right away whats going on. If he doesn't support, that's fine, but he may have still have some input on it.
|
|
|
|
Tssar
Member
Offline
Activity: 120
Merit: 10
|
|
July 27, 2017, 05:50:00 PM |
|
Hi
Can we mine LTC at Zpool?
Thanks
|
|
|
|
crackfoo (OP)
Legendary
Offline
Activity: 3556
Merit: 1126
|
|
July 27, 2017, 05:52:43 PM |
|
Hi
Can we mine LTC at Zpool?
Thanks
not yet. I need to find someone to update the stratum code to support segwit first...
|
ZPOOL - the miners multipool! Support We pay 10 FLUX Parallel Assets (PA) directly to block rewards! Get paid more and faster. No PA fee's or waiting around for them, paid instantly on every block found!
|
|
|
cryptolelefla
Member
Offline
Activity: 121
Merit: 10
|
|
July 27, 2017, 09:05:47 PM |
|
it's possible to assign worker name in this poll?
|
|
|
|
Lercker
|
|
July 27, 2017, 09:15:54 PM |
|
it's possible to assign worker name in this poll?
In the password field... -p Rig1,c=BTC....
|
|
|
|
olek82
Newbie
Offline
Activity: 23
Merit: 0
|
|
July 27, 2017, 11:42:50 PM |
|
hi again, im mining on zpool for like 30h. there is still no transaction to my wallet. when can i expect my first payout? is there something wrong ? thx
|
|
|
|
RandomQ
|
|
July 28, 2017, 12:21:36 AM |
|
hi again, im mining on zpool for like 30h. there is still no transaction to my wallet. when can i expect my first payout? is there something wrong ? thx Current daily limit is like .015 BTC, all other payouts are done on sunday. also there is a confirmed and unconfirmed balance.
|
|
|
|
olek82
Newbie
Offline
Activity: 23
Merit: 0
|
|
July 28, 2017, 12:28:59 AM |
|
Note: Minimum payout for this wallet is 0.0001 UNO . ive got alot more so whats the deal???
|
|
|
|
JaredKaragen
Legendary
Offline
Activity: 1848
Merit: 1166
My AR-15 ID's itself as a toaster. Want breakfast?
|
|
July 28, 2017, 12:39:10 AM |
|
Note: Minimum payout for this wallet is 0.0001 UNO . ive got alot more so whats the deal???
Minimum payout on sundays only.......
|
|
|
|
SFR10
Legendary
Offline
Activity: 3192
Merit: 3529
Crypto Swap Exchange
|
|
July 28, 2017, 06:14:25 AM Last edit: July 28, 2017, 11:44:50 AM by SFR10 |
|
I'm having issues regarding payouts in Decred, anyone having similar issues? My last two payouts, don't have a transaction link, even though it says it has paid me (since it has deducted the said amounts from my balance). http://www.zpool.ca/?address=DsV2oBk16Q4ctgTn4Rdbcw4Tu8fsHxRzQTo Link to explorer: https://mainnet.decred.org/address/DsV2oBk16Q4ctgTn4Rdbcw4Tu8fsHxRzQToI've only received 0.42892362 DCR (according to my wallet and explorer) but in zpool website, in Total Paid *** category is being listed as 0.50499777 DCR.
In case this has been done due to some recent changes, I would appreciate if you can check this (crackfoo). Update:Thank you for fixing the issue, since those credits are now back in my balance, I appreciate it
|
|
|
|
olek82
Newbie
Offline
Activity: 23
Merit: 0
|
|
July 28, 2017, 07:04:02 AM |
|
Note: Minimum payout for this wallet is 0.0001 UNO . ive got alot more so whats the deal???
Minimum payout on sundays only....... seems im to dumb to get it. when can i expect to get 0.07 uno payed to my wallet? Minimum is 0.0001 UNO and daily limit is 0.15 BTC so where the fuck is the transaction??? thanks
|
|
|
|
|
crackfoo (OP)
Legendary
Offline
Activity: 3556
Merit: 1126
|
|
July 28, 2017, 12:17:40 PM |
|
I guess blakecoin is involved...1000% increase from where... edit: pool is on a fork, turn it off. it wasn't a fork, c-cex added a different coin with the same BLC symbol so the prices were fucked up for a while but are now balances are adjusted to what you SHOULD have been earning. I s'pose I can expect the trolls to pop up and announce I've stolen all their BTC again.
|
ZPOOL - the miners multipool! Support We pay 10 FLUX Parallel Assets (PA) directly to block rewards! Get paid more and faster. No PA fee's or waiting around for them, paid instantly on every block found!
|
|
|
crackfoo (OP)
Legendary
Offline
Activity: 3556
Merit: 1126
|
|
July 28, 2017, 12:21:12 PM |
|
I guess blakecoin is involved...1000% increase from where... edit: pool is on a fork, turn it off. it wasn't a fork, c-cex added a different coin with the same BLC symbol so the prices were fucked up for a while but are now balances are adjusted to what you SHOULD have been earning. I s'pose I can expect the trolls to pop up and announce I've stolen all their BTC again. yup... just checked the support tickets and a bunch of miners crying I stole their BTC and WANT IT PAID.
|
ZPOOL - the miners multipool! Support We pay 10 FLUX Parallel Assets (PA) directly to block rewards! Get paid more and faster. No PA fee's or waiting around for them, paid instantly on every block found!
|
|
|
agapes
Newbie
Offline
Activity: 41
Merit: 0
|
|
July 28, 2017, 03:51:30 PM |
|
what happned , last night before i went to bed i had a lot of total unpaid bitcin but morning when i woke up all gone???!!!!!
|
|
|
|
crackfoo (OP)
Legendary
Offline
Activity: 3556
Merit: 1126
|
|
July 28, 2017, 05:06:30 PM |
|
I'm having issues regarding payouts in Decred, anyone having similar issues? My last two payouts, don't have a transaction link, even though it says it has paid me (since it has deducted the said amounts from my balance). http://www.zpool.ca/?address=DsV2oBk16Q4ctgTn4Rdbcw4Tu8fsHxRzQTo Link to explorer: https://mainnet.decred.org/address/DsV2oBk16Q4ctgTn4Rdbcw4Tu8fsHxRzQToI've only received 0.42892362 DCR (according to my wallet and explorer) but in zpool website, in Total Paid *** category is being listed as 0.50499777 DCR.
In case this has been done due to some recent changes, I would appreciate if you can check this (crackfoo). Update:Thank you for fixing the issue, since those credits are now back in my balance, I appreciate it no prob. I forgot to "unlock" the wallet after restarting it so the tx's failed to get created.
|
ZPOOL - the miners multipool! Support We pay 10 FLUX Parallel Assets (PA) directly to block rewards! Get paid more and faster. No PA fee's or waiting around for them, paid instantly on every block found!
|
|
|
|