Skip to content

Commit

Permalink
Add ref to light farmers and flex farmer guide
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbrucker committed Nov 21, 2023
1 parent e50d4f9 commit 84a29b8
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 5 deletions.
13 changes: 10 additions & 3 deletions src/app/info/info.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,23 @@ <h4>
</h4>
<div>
<ul>
<li [innerHTML]="snippetService.getSnippet('info-component.using-this-pool.docs', docsGettingStartedUrl)"></li>
<li>
<span>Please follow <a [href]="docsGettingStartedUrl" target="_blank">this guide</a> to get started</span>
<span *ngIf="supportsCompressedPlots"> and <a href="https://docs.foxypool.io/proof-of-spacetime/guides/switching-from-flex-farmer-to-foxy/" target="_blank">this guide</a> if you are switching from FlexFarmer</span>
</li>
</ul>
</div>
<h4>
{{snippetService.getSnippet('info-component.pool-info.title')}}:
</h4>
<div>
<ul>
<li *ngIf="supportsCompressedPlots">
Compressed plots are supported <fa-icon [icon]="faCheck" class="color-green"></fa-icon>
<li *ngIf="supportsCompressedPlots" style="list-style: none">
<fa-icon [icon]="faCheck" class="color-green"></fa-icon> Compressed Bladebit and Gigahorse plots are supported
</li>
<li style="list-style: none">
<fa-icon [icon]="faCheck" class="color-green"></fa-icon> Light farmers available:
<ul [innerHTML]="availableLightFarmersHtml" style=""></ul>
</li>
<li>
{{snippetService.getSnippet('info-component.pool-info.block-split-info')}}
Expand Down
21 changes: 21 additions & 0 deletions src/app/info/info.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,27 @@ export class InfoComponent implements OnInit, OnDestroy {
return this.poolsProvider.pool.type === PoolType.nft
}

public get availableLightFarmersHtml(): string {
const lightFarmers = [{
name: 'Foxy-Farmer',
supports: 'OG & NFT uncompressed and Bladebit compressed plots',
link: 'https://docs.foxypool.io/proof-of-spacetime/foxy-farmer/',
}]
if (this.poolsProvider.pool.type === PoolType.nft) {
lightFarmers.push({
name: 'Foxy-GH-Farmer',
supports: 'NFT uncompressed, Bladebit compressed and Gigahorse compressed plots',
link: 'https://docs.foxypool.io/proof-of-spacetime/foxy-gh-farmer/',
}, {
name: 'Fast Farmer',
supports: 'NFT uncompressed and Bladebit compressed plots',
link: 'https://docs.foxypool.io/proof-of-spacetime/fast-farmer/',
})
}

return lightFarmers.map(lightFarmer => `<li><a href="${lightFarmer.link}" target="_blank">${lightFarmer.name}</a>: ${lightFarmer.supports}</li>`).join('')
}

public get chartTheme(): string {
return this.themeProvider.isDarkTheme ? 'dark' : 'default'
}
Expand Down
3 changes: 1 addition & 2 deletions src/snippets/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,9 @@ export default {
'info-component.pool-info.dr-info': 'Pool with support for any DR, default DR: {1}',
'info-component.pool-info.payout.fee-info': '{1}% fee, free automatic payouts',
'info-component.pool-info.payout.interval-info': 'Payouts happen once per day at 12:00 UTC',
'info-component.pool-info.payout.minimum-info': 'Minimum amount for payouts is {1} {2}, every Sunday the minimum amount is ignored',
'info-component.pool-info.payout.minimum-info': 'Minimum amount for payouts is {1} {2}, every Sunday the minimum amount is ignored unless a custom minimum payout is set',
'info-component.pool-info.pplns-info': 'PPLNS over the last {1} hours',
'info-component.pool-info.title': 'Pool info',
'info-component.using-this-pool.docs': 'Please follow <a href="{1}" target="_blank">this guide</a> to get started',
'info-component.using-this-pool.title': 'Using this pool',
'leave-pool-modal.collateral-warning': 'Warning! This can not be reverted, rejoining the pool is not possible after paying out the collateral balance!',
'leave-pool-modal.leave': 'Leave',
Expand Down

0 comments on commit 84a29b8

Please sign in to comment.