diff --git a/currencies.ts b/currencies.ts index 8a9daf5..0838784 100644 --- a/currencies.ts +++ b/currencies.ts @@ -8,6 +8,7 @@ export type Currency = { ticker: SupportedCurrency; tokenContractAddress: string; loanPoolName: string; + issuer?: string; }; // The addresses here are for testnet. @@ -25,6 +26,7 @@ export const CURRENCY_WBTC: Currency = { ticker: 'wBTC', tokenContractAddress: 'CAP5AMC2OHNVREO66DFIN6DHJMPOBAJ2KCDDIMFBR7WWJH5RZBFM3UEI', loanPoolName: 'pool_wbtc', + issuer: 'GATALTGTWIOT6BUDBCZM3Q4OQ4BO2COLOAZ7IYSKPLC2PMSOPPGF5V56', } as const; export const CURRENCY_WETH: Currency = { @@ -32,6 +34,7 @@ export const CURRENCY_WETH: Currency = { ticker: 'wETH', tokenContractAddress: 'CAZAQB3D7KSLSNOSQKYD2V4JP5V2Y3B4RDJZRLBFCCIXDCTE3WHSY3UE', loanPoolName: 'pool_weth', + issuer: 'GATALTGTWIOT6BUDBCZM3Q4OQ4BO2COLOAZ7IYSKPLC2PMSOPPGF5V56', } as const; export const CURRENCY_USDC: Currency = { @@ -39,6 +42,7 @@ export const CURRENCY_USDC: Currency = { ticker: 'USDC', tokenContractAddress: 'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA', loanPoolName: 'pool_usdc', + issuer: 'GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5', } as const; export const CURRENCY_EURC: Currency = { @@ -46,6 +50,7 @@ export const CURRENCY_EURC: Currency = { ticker: 'EURC', tokenContractAddress: 'CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ', loanPoolName: 'pool_eurc', + issuer: 'GB3Q6QDZYTHWT7E5PVS3W7FUT5GVAFC5KSZFFLPU25GO7VTC3NM2ZTVO', } as const; export const CURRENCIES: Currency[] = [ diff --git a/src/components/CryptoAmountSelector.tsx b/src/components/CryptoAmountSelector.tsx index 6f47d89..57f34ee 100644 --- a/src/components/CryptoAmountSelector.tsx +++ b/src/components/CryptoAmountSelector.tsx @@ -78,7 +78,7 @@ export const CryptoAmountSelector = ({ const TickerOption = ({ ticker }: { ticker: SupportedCurrency }) => { const { walletBalances } = useWallet(); const balance = walletBalances?.[ticker]; - const disabled = isNil(balance) || !balance.trustline || isBalanceZero(balance.balanceLine.balance); + const disabled = isNil(balance) || !balance.trustLine || isBalanceZero(balance.balanceLine.balance); return (