Merge pull request #747 from cake-tech/changenow-usdc-poly

CW-307 Mapping for ChangeNOW and SimpleSwap
This commit is contained in:
Omar Hatem
2023-02-01 16:30:51 +02:00
committed by GitHub
3 changed files with 9 additions and 1 deletions
@@ -275,6 +275,10 @@ class ChangeNowExchangeProvider extends ExchangeProvider {
switch(currency) {
case CryptoCurrency.zec:
return 'zec';
case CryptoCurrency.usdcpoly:
return 'usdcmatic';
case CryptoCurrency.maticpoly:
return 'maticmainnet';
default:
return currency.title.toLowerCase();
}
@@ -235,6 +235,10 @@ class SimpleSwapExchangeProvider extends ExchangeProvider {
return 'usdcpoly';
case CryptoCurrency.usdcsol:
return 'usdcspl';
case CryptoCurrency.matic:
return 'maticerc20';
case CryptoCurrency.maticpoly:
return 'matic';
default:
return currency.title.toLowerCase();
}