Conversation
michaeltout
left a comment
There was a problem hiding this comment.
I understand the reasoning behind this approach but unfortunately this would cause currencies with titles like btc.michaelchain.vrsc to have the logo of btc, when in reality, they don't actually need to be mapped or otherwise related to btc, which could mislead users. I think a better approach to do this would be to check if a PBaaS currency is mapped to an ethereum ERC20 in src/components/SendModal/ConvertOrCrossChainSend/ConvertOrCrossChainSendForm/ConvertOrCrossChainSendForm.js while processing the suggestion paths, and then if so, set logoid such that getCoinLogo will render the erc20 logo for that currency, in the same way that it would if the currency logo was being rendered in the manage coins list for erc20 currencies.
|
hello @michaeltout thank you for taking out time, i've been looking at how i can implement this using your suggestion but i think i need some clarification, so when you say a pbaas currency mapped to an erc20 token i believe you mean it's satisfying the condition whereby proto === 'erc20' in this function |
No description provided.