Reply handler
The reply entrypoint only processes successful INSTANTIATE_TOKEN_REPLY_ID
messages, which can only be the result of a token contract instantiation done in initialize
. Additionally, the handler also checks that the contract was not initialized previously, by ensuring that the stored LP token address is empty.
If the check passes, the function updates the stored LP token contract address and returns an empty response with a liquidity_token_addr
attribute that helps to discover the LP token address.