rosen-bridge/ui

Amount of token always off by 600

Closed this issue · 2 comments

Thanks for bug report.

I pretty sure this is the cause:

getMaxTransferableAmount(
amount,
sourceField.value,
tokenField.value,
).toString(),

While it should be:

 getMaxTransferableAmount( 
   amount, 
   sourceField.value, 
   tokenField.value.metaData.type === 'native', 
 ).toString(), 

It will get fixed in the next release.

Resolved in 6d091ce.