Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
sendNahmii(symbol, toAddress, amount) {
const { supportedAssets } = this.props;
let ct;
if (symbol === 'ETH') {
ct = '0x0000000000000000000000000000000000000000';
} else {
ct = supportedAssets.get('assets').find((a) => a.get('symbol') === symbol).get('currency');
}
const monetaryAmount = new nahmii.MonetaryAmount(amount, ct);
this.props.nahmiiTransfer(monetaryAmount, toAddress);
}