pub fn burn_whale(
    deps: Deps,
    info: MessageInfo,
    fund_contract_addr: Addr,
    amount: Uint128,
) -> CommunityFundResult {
    ADMIN.assert_admin(deps, &info.sender)?;
    check_fund_balance(deps, fund_contract_addr, amount)?;
    let state = STATE.load(deps.storage)?;
    Ok(
        Response::new().add_message(CosmosMsg::Wasm(WasmMsg::Execute {
            contract_addr: state.whale_token_addr.to_string(),
            funds: vec![],
            msg: to_binary(&Cw20ExecuteMsg::Burn { amount })?,
        })),
    )
}
/// Call burn on WHALE cw20 token
Call burn on WHALE cw20 token
Call burn on WHALE cw20 token
pub fn burn_whale(
    deps: Deps,
    info: MessageInfo,
    fund_contract_addr: Addr,
    amount: Uint128,
) -> CommunityFundResult {
    ADMIN.assert_admin(deps, &info.sender)?;
    check_fund_balance(deps, fund_contract_addr, amount)?;
    let state = STATE.load(deps.storage)?;
    Ok(
        Response::new().add_message(CosmosMsg::Wasm(WasmMsg::Execute {
            contract_addr: state.whale_token_addr.to_string(),
            funds: vec![],
            msg: to_binary(&Cw20ExecuteMsg::Burn { amount })?,
        })),
    )
}
pub fn burn_whale ( deps : Deps , info : MessageInfo , fund_contract_addr : Addr , amount : Uint128 , ) -> CommunityFundResult { ADMIN . assert_admin ( deps , & info . sender ) ? ; check_fund_balance ( deps , fund_contract_addr , amount ) ? ; let state = STATE . load ( deps . storage ) ? ; Ok ( Response :: new ( ) . add_message ( CosmosMsg :: Wasm ( WasmMsg :: Execute { contract_addr : state . whale_token_addr . to_string ( ) , funds : vec ! [ ] , msg : to_binary ( & Cw20ExecuteMsg :: Burn { amount } ) ? , } ) ) , ) }
Call burn on WHALE cw20 token
Call burn on WHALE cw20 token
deps
Deps
info
MessageInfo
fund_contract_addr
Addr
amount
Uint128
deps
Deps
info
MessageInfo
fund_contract_addr
Addr
amount
Uint128