pub fn after_token_instantiation(
    deps: DepsMut,
    response: MsgInstantiateContractResponse,
) -> VaultResult<Response> {
    let liquidity_token = deps.api.addr_validate(response.get_contract_address())?;

    POOL_INFO.update(deps.storage, |mut meta| -> VaultResult<_> {
        meta.liquidity_token = liquidity_token.clone();
        Ok(meta)
    })?;

    Ok(Response::new().add_attribute("liquidity_token_addr", liquidity_token.to_string()))
}
/// Executes after the token contract instantiation occurs successfully
/// Stores the liquidity token address
Executes after the token contract instantiation occurs successfully
Stores the liquidity token address
Executes after the token contract instantiation occurs successfully Stores the liquidity token address
pub fn after_token_instantiation(
    deps: DepsMut,
    response: MsgInstantiateContractResponse,
) -> VaultResult<Response> {
    let liquidity_token = deps.api.addr_validate(response.get_contract_address())?;
    POOL_INFO.update(deps.storage, |mut meta| -> VaultResult<_> {
        meta.liquidity_token = liquidity_token.clone();
        Ok(meta)
    })?;
    Ok(Response::new().add_attribute("liquidity_token_addr", liquidity_token.to_string()))
}
pub fn after_token_instantiation ( deps : DepsMut , response : MsgInstantiateContractResponse , ) -> VaultResult < Response > { let liquidity_token = deps . api . addr_validate ( response . get_contract_address ( ) ) ? ; POOL_INFO . update ( deps . storage , | mut meta | -> VaultResult < _ > { meta . liquidity_token = liquidity_token . clone ( ) ; Ok ( meta ) } ) ? ; Ok ( Response :: new ( ) . add_attribute ( " " , liquidity_token . to_string ( ) ) ) }
Executes after the token contract instantiation occurs successfully
Stores the liquidity token address
Executes after the token contract instantiation occurs successfully Stores the liquidity token address
deps
DepsMut
response
MsgInstantiateContractResponse
deps
DepsMut
response
MsgInstantiateContractResponse