Send multiple assets to contract

Is it possible to send multiple assets to contract? Suppose we have a simple AMM add_liquidity method that needs two assets together. How can we achieve this? Looks like the msg_amount() only returns one u64.

Hi there!

It seems that the payable function only accepts one asset per transfer, as seen here:

assert(msg_asset_id() == BASE_TOKEN);
assert(msg_amount() > 0);

Yes, I see. I just wondering how we send multiple assets at the same time or is it has been planned yet.

1 Like