-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add support for third-party markets "house currency". Currency rates are displayed in the UI next to the local currency price. This helps explains the price discrepency for websites using their own currency system * Corrected Rustyloot market price calculations (convert from "coins" to USD) * Corrected Tradeit market price cash/crypto discount multiplier (now 35%) * Corrected Tradeit "trade" market accepted payment options * Add market type flag for gambling websites, for transparency
- Loading branch information
1 parent
1097cae
commit 7ca7dde
Showing
14 changed files
with
150 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -659,24 +659,48 @@ | |
@if ((price.Price + (State.Profile.ItemIncludeMarketFees ? price.Fee : 0)) > 0) | ||
{ | ||
<span class="pl-2">@State.Currency.ToPriceString((price.Price + (State.Profile.ItemIncludeMarketFees ? price.Fee : 0)))</span> | ||
@if (State.Profile.ItemIncludeMarketFees && price.Fee != 0) | ||
@if ((price.HousePrice != null) || (price.Fee != 0 && State.Profile.ItemIncludeMarketFees)) | ||
{ | ||
<MudTooltip> | ||
<TooltipContent> | ||
@if (price.Fee > 0) | ||
@if (price.HousePrice != null) | ||
{ | ||
<span>Price includes @State.Currency.ToPriceString(price.Fee) in estimated fees charged by @price.MarketType.GetDisplayName() payment providers</span> | ||
<p> | ||
<span>This price has been converted from the @price.MarketType.GetDisplayName() in-house currency, <strong>"@price.HousePriceName?.ToLower()"</strong>. </span> | ||
<span>The original price was <strong>@State.Currency.ToPriceString(price.HousePrice.Value, dense: true) @price.HousePriceName?.ToLower()?.Pluralise(price.HousePrice.Value)</strong>. The conversion rate is <strong>1 @price.HousePriceName?.ToLower() = [email protected]((decimal)price.Price / (decimal)price.HousePrice.Value, 2) @State.Currency.Name</strong></span> | ||
</p> | ||
} | ||
else | ||
@if (price.Fee != 0 && State.Profile.ItemIncludeMarketFees) | ||
{ | ||
<span>Price includes @State.Currency.ToPriceString(price.Fee) in estimate discounts gained by purchasing @price.MarketType.GetDisplayName() balance</span> | ||
<p> | ||
@if (price.Fee > 0) | ||
{ | ||
<span>This price includes @State.Currency.ToPriceString(price.Fee) in estimated fees charged by @price.MarketType.GetDisplayName() or their payment providers</span> | ||
} | ||
else | ||
{ | ||
<span>This price includes @State.Currency.ToPriceString(price.Fee) in estimated bonus balance from purchasing @price.MarketType.GetDisplayName() balance</span> | ||
} | ||
</p> | ||
} | ||
</TooltipContent> | ||
<ChildContent> | ||
<i class="fa fa-fw fa-comment-dollar ml-1"></i> | ||
</ChildContent> | ||
</MudTooltip> | ||
} | ||
@if (price.MarketType.IsCasino()) | ||
{ | ||
<MudTooltip> | ||
<TooltipContent> | ||
<p>@price.MarketType.GetDisplayName() is a gambling website. There <i>might</i> be restrictions on deposits and withdraws, such as minimum wagers.</p> | ||
<p>Make sure you read the @price.MarketType.GetDisplayName() terms of service, ensure you are legally allowed to gamble and that you fully understand the risks of gambling.</p> | ||
</TooltipContent> | ||
<ChildContent> | ||
<i class="fa fa-fw fa-dice ml-1"></i> | ||
</ChildContent> | ||
</MudTooltip> | ||
} | ||
} | ||
else | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters