Skip to content

Conversation

qizhou
Copy link
Contributor

@qizhou qizhou commented Dec 23, 2021

The motivation is to allow token mapping from source to destination by user (in general the tokens on the source and target chains are different).

@qizhou qizhou requested a review from zhiqiangxu December 23, 2021 07:47
uint256 amountPlusFee = (transferData.amount *
(10000 + CONTRACT_FEE_BASIS_POINTS)) / 10000;
IERC20(transferData.tokenAddress).safeTransferFrom(
IERC20(sourceTokenAddress).safeTransferFrom(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think evil things can happen if designed like this...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems the token mapping has to be centralized, can't be decentralized..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants