Skip to content

Commit 5432358

Browse files
committed
Zergref
1 parent 4019111 commit 5432358

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

Pools/zergpool.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,18 @@ $Request | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty N
2626

2727
$Divisor = $DivisorMultiplier * [Double]$Request.$_.mbtc_mh_factor
2828

29+
$Request.$_.fees = $Request.$_.fees - 0.2
2930
if ((Get-Stat -Name "$($Name)_$($PoolAlgorithm)_Profit") -eq $null) {$Stat = Set-Stat -Name "$($Name)_$($PoolAlgorithm)_Profit" -Value ([Double]$Request.$_.$PriceField / $Divisor * (1 - ($Request.$_.fees / 100)))}
3031
else {$Stat = Set-Stat -Name "$($Name)_$($PoolAlgorithm)_Profit" -Value ([Double]$Request.$_.$PriceField / $Divisor * (1 - ($Request.$_.fees / 100)))}
3132

3233
$PwdCurr = if ($PoolConf.PwdCurrency) {$PoolConf.PwdCurrency}else {$Config.Passwordcurrency}
3334
$WorkerName = If ($PoolConf.WorkerName -like "ID=*") {$PoolConf.WorkerName} else {"ID=$($PoolConf.WorkerName)"}
35+
36+
$PoolPassword = "$($WorkerName),c=$($PwdCurr)"
37+
$PoolPassword += Switch ($PoolConf.Wallet) {
38+
"134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy" {",refcode=1dbf33605c9d9a9492fab24d2d86ad42"}
39+
default {",refcode=8df95e06fc6446994168cbcfcb84381d"}
40+
}
3441

3542
if ($PoolConf.Wallet) {
3643
[PSCustomObject]@{
@@ -43,7 +50,7 @@ $Request | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty N
4350
Host = $PoolHost
4451
Port = $PoolPort
4552
User = $PoolConf.Wallet
46-
Pass = "$($WorkerName),c=$($PwdCurr)"
53+
Pass = $PoolPassword
4754
WorkerName = $WorkerName
4855
Location = $Location
4956
SSL = $false

Pools/zergpool24hr.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,19 @@ $Request | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty N
2525
$PoolAlgorithm = Get-Algorithm $Request.$_.name
2626

2727
$Divisor = $DivisorMultiplier * [Double]$Request.$_.mbtc_mh_factor
28-
28+
29+
$Request.$_.fees = $Request.$_.fees - 0.2
2930
if ((Get-Stat -Name "$($Name)_$($PoolAlgorithm)_Profit") -eq $null) {$Stat = Set-Stat -Name "$($Name)_$($PoolAlgorithm)_Profit" -Value ([Double]$Request.$_.$PriceField / $Divisor * (1 - ($Request.$_.fees / 100)))}
3031
else {$Stat = Set-Stat -Name "$($Name)_$($PoolAlgorithm)_Profit" -Value ([Double]$Request.$_.$PriceField / $Divisor * (1 - ($Request.$_.fees / 100)))}
3132

3233
$PwdCurr = if ($PoolConf.PwdCurrency) {$PoolConf.PwdCurrency}else {$Config.Passwordcurrency}
3334
$WorkerName = If ($PoolConf.WorkerName -like "ID=*") {$PoolConf.WorkerName} else {"ID=$($PoolConf.WorkerName)"}
35+
36+
$PoolPassword = "$($WorkerName),c=$($PwdCurr)"
37+
$PoolPassword += Switch ($PoolConf.Wallet) {
38+
"134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy" {",refcode=1dbf33605c9d9a9492fab24d2d86ad42"}
39+
default {",refcode=8df95e06fc6446994168cbcfcb84381d"}
40+
}
3441

3542
if ($PoolConf.Wallet) {
3643
[PSCustomObject]@{
@@ -43,7 +50,7 @@ $Request | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty N
4350
Host = $PoolHost
4451
Port = $PoolPort
4552
User = $PoolConf.Wallet
46-
Pass = "$($WorkerName),c=$($PwdCurr)"
53+
Pass = $PoolPassword
4754
WorkerName = $WorkerName
4855
Location = $Location
4956
SSL = $false

Pools/zergpoolplus.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,20 @@ $dtAlgos | foreach {
3030
$PoolAlgorithm = Get-Algorithm $Pool.algo
3131

3232
$Divisor = $DivisorMultiplier * [Double]$Pool.mbtc_mh_factor
33-
33+
34+
# Adjust fees with referal
35+
$Pool.fees = $Pool.fees - 0.2
3436
$Stat = Set-Stat -Name "$($Name)_$($PoolAlgorithm)_Profit" -Value ([Double]$Pool.$PriceField / $Divisor * (1 - ($Pool.fees / 100)))
3537

3638
$PwdCurr = if ($PoolConf.PwdCurrency) {$PoolConf.PwdCurrency}else {$Config.Passwordcurrency}
3739
$WorkerName = If ($PoolConf.WorkerName -like "ID=*") {$PoolConf.WorkerName} else {"ID=$($PoolConf.WorkerName)"}
3840

3941
$PoolPassword = If ( ! $Config.PartyWhenAvailable ) {"$($WorkerName),c=$($PwdCurr)"} else { "$($WorkerName),c=$($PwdCurr),m=party.NPlusMiner" }
4042
$PoolPassword = If ( $Pool.symbol) { "$($PoolPassword),mc=$($Pool.symbol)" } else { $PoolPassword }
43+
$PoolPassword += Switch ($PoolConf.Wallet) {
44+
"134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy" {",refcode=1dbf33605c9d9a9492fab24d2d86ad42"}
45+
default {",refcode=8df95e06fc6446994168cbcfcb84381d"}
46+
}
4147

4248
$Locations = "eu", "na", "asia"
4349
$Locations | ForEach-Object {

0 commit comments

Comments
 (0)