pub fn _handle_callback(
    deps: DepsMut,
    env: Env,
    info: MessageInfo,
    msg: CallbackMsg,
) -> VaultResult<Response> {
    // Callback functions can only be called this contract itself
    if info.sender != env.contract.address {
        return Err(LunaVaultError::NotCallback {});
    }
    match msg {
        CallbackMsg::AfterTrade { loan_fee } => after_trade(deps, env, info, loan_fee),
    }
}
/// Handles the callback after using a flashloan
Handles the callback after using a flashloan
Handles the callback after using a flashloan
pub fn _handle_callback(
    deps: DepsMut,
    env: Env,
    info: MessageInfo,
    msg: CallbackMsg,
) -> VaultResult<Response> {
    // Callback functions can only be called this contract itself
    if info.sender != env.contract.address {
        return Err(LunaVaultError::NotCallback {});
    }
    match msg {
        CallbackMsg::AfterTrade { loan_fee } => after_trade(deps, env, info, loan_fee),
    }
}
pub fn _handle_callback ( deps : DepsMut , env : Env , info : MessageInfo , msg : CallbackMsg , ) -> VaultResult < Response > { // Callback functions can only be called this contract itself if info . sender != env . contract . address { return Err ( LunaVaultError :: NotCallback { } ) ; } match msg { CallbackMsg :: AfterTrade { loan_fee } => after_trade ( deps , env , info , loan_fee ) , } }
Handles the callback after using a flashloan
Handles the callback after using a flashloan
deps
DepsMut
env
Env
info
MessageInfo
msg
CallbackMsg
deps
DepsMut
env
Env
info
MessageInfo
msg
CallbackMsg