Skip to content

Commit 06e1533

Browse files
rockstardevb0l0k
authored andcommitted
Adding logo
1 parent e0d990f commit 06e1533

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

BTCPayServer.Plugins.USDt/USDtPlugin.cs

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,32 @@ public static EthErc20LikeConfigurationItem OverrideWithServerSettings(EthErc20L
246246

247247
private static EthErc20LikeConfigurationItem GetEthUSDtHardcodedConfig(ChainName chainName)
248248
{
249+
const string ethLogo =
250+
"data:image/svg+xml,%3Csvg width='165' height='165' viewBox='0 0 165 165' fill='none' xmlns='http://www.w3.org/2000/svg'%3E" +
251+
"%3Ccircle cx='82.5' cy='82.5' r='82.5' fill='%23019493'/%3E" +
252+
// Main Tether coin (same as TRON variant)
253+
"%3Cpath d='M128.225 75.7991L112.84 49.382C112.209 48.3018 111.049 47.6387 109.787 47.6387H56.9688C55.7442 47.6387 54.6051 48.2697 53.9634 49.2964L37.5196 75.7724C36.664 77.152 36.8832 78.9274 38.0436 80.0665L80.3431 121.355C81.7121 122.697 83.9206 122.697 85.295 121.355L127.648 80.013C128.787 78.9007 129.022 77.1734 128.225 75.8044V75.7991ZM106.477 83.1306C106.418 85.8365 98.4875 88.0879 87.9206 88.6387V101.254H77.9313V88.6387C67.3645 88.0879 59.4394 85.8365 59.3805 83.1306V77.4943C59.4394 74.7884 67.3645 72.5317 77.9313 71.9809V66.8419H62.8886V59.4301H102.969V66.8419H87.926V71.9809C98.4928 72.5317 106.423 74.7884 106.482 77.4943V83.1306H106.477Z' fill='white'/%3E" +
254+
"%3Cpath d='M87.9206 81.3659C86.311 81.4515 84.6372 81.4889 82.926 81.4889C81.2148 81.4889 79.541 81.4462 77.9313 81.3659V75.9809C68.9527 76.4462 61.8725 78.1467 59.9206 80.3071C62.2255 82.8526 71.6533 84.7617 82.9313 84.7617C94.2094 84.7617 103.632 82.8526 105.937 80.3071C103.979 78.1467 96.91 76.4462 87.926 75.9809V81.3659H87.9206Z' fill='white'/%3E" +
255+
// Small badge circle bottom-right
256+
"%3Ccircle cx='113' cy='108.5' r='19' fill='%23019493'/%3E" +
257+
"%3Ccircle cx='113' cy='108.5' r='17' fill='white'/%3E" +
258+
// Ethereum diamond inside the small circle (centered and scaled to fit)
259+
"%3Cg transform='translate(103,92) scale(0.5)'%3E" +
260+
"%3Cpolygon fill='%23343434' points='20,0 0,34 20,26 40,34'/%3E" +
261+
"%3Cpolygon fill='%238C8C8C' points='20,26 0,34 20,44 40,34'/%3E" +
262+
"%3Cpolygon fill='%233C3C3D' points='20,54 0,40 20,66 40,40'/%3E" +
263+
"%3Cpolygon fill='%23141414' points='20,44 0,40 20,54 40,40'/%3E" +
264+
"%3C/g%3E" +
265+
"%3C/svg%3E%0A";
266+
249267
return chainName switch
250268
{
251269
_ when chainName == ChainName.Mainnet => new EthErc20LikeConfigurationItem
252270
{
253271
Currency = Constants.USDtCurrency,
254272
CurrencyDisplayName = Constants.USDtCurrencyDisplayName,
255273
DisplayName = $"{Constants.USDtCurrencyDisplayName} on {Constants.EthereumChainName}",
256-
CryptoImagePath = string.Empty,
274+
CryptoImagePath = ethLogo,
257275

258276
DefaultRateRules =
259277
[
@@ -272,7 +290,7 @@ private static EthErc20LikeConfigurationItem GetEthUSDtHardcodedConfig(ChainName
272290
Currency = Constants.USDtCurrency,
273291
CurrencyDisplayName = Constants.USDtCurrencyDisplayName,
274292
DisplayName = $"{Constants.USDtCurrencyDisplayName} on {Constants.EthereumChainName} Testnet",
275-
CryptoImagePath = string.Empty,
293+
CryptoImagePath = ethLogo,
276294

277295
DefaultRateRules =
278296
[

0 commit comments

Comments
 (0)