XCM executor is usually using withdraw and deposit to for asset handling. This has two issues:
- Hard to link the withdraw & deposit event to trace token movement.
- ERC20 only have
transfer method. It is simply impossible to perform withdraw/deposit operation with it.
Acala supports transfer ERC20 to other parachain with XCM. However we have to implement some relative unsafe code to make it work.
It will be good if the implementation uses transfer for most of the token operation and withdraw/deposit only absolutely necessary, and I cannot think of any reason why XCM executor should be allowed to mint/burn token.
XCM executor is usually using
withdrawanddepositto for asset handling. This has two issues:transfermethod. It is simply impossible to perform withdraw/deposit operation with it.Acala supports transfer ERC20 to other parachain with XCM. However we have to implement some relative unsafe code to make it work.
It will be good if the implementation uses transfer for most of the token operation and withdraw/deposit only absolutely necessary, and I cannot think of any reason why XCM executor should be allowed to mint/burn token.