Extend available Symbol length to 22 to support yDAI+yUSDC+yUSDT+yTUSD
This commit is contained in:
parent
ed841f7196
commit
051813f1f3
|
@ -368,9 +368,9 @@ export default class AddTokenScreen extends Component {
|
|||
}
|
||||
|
||||
const symbolLen = symbol.trim().length
|
||||
const validSymbol = symbolLen > 0 && symbolLen < 12
|
||||
const validSymbol = symbolLen > 0 && symbolLen < 23
|
||||
if (!validSymbol) {
|
||||
msg += 'Symbol must be between 0 and 12 characters.'
|
||||
msg += 'Symbol must be between 0 and 23 characters.'
|
||||
}
|
||||
|
||||
let ownAddress = identitiesList.includes(standardAddress)
|
||||
|
@ -527,8 +527,8 @@ export default class AddTokenScreen extends Component {
|
|||
const symbolLength = customSymbol.length
|
||||
let customSymbolError = null
|
||||
|
||||
if (symbolLength <= 0 || symbolLength >= 12) {
|
||||
customSymbolError = 'Symbol must be between 0 and 12 characters.' /* this.context.t('symbolBetweenZeroTen')*/
|
||||
if (symbolLength <= 0 || symbolLength >= 23) {
|
||||
customSymbolError = 'Symbol must be between 0 and 23 characters.' /* this.context.t('symbolBetweenZeroTen')*/
|
||||
}
|
||||
|
||||
this.setState({ customSymbol, customSymbolError })
|
||||
|
|
Loading…
Reference in New Issue