pub fn estimate_withdraw_fee(
    deps: Deps,
    amount: Uint128,
) -> StdResult<EstimateWithdrawFeeResponse> {
    let fee = get_withdraw_fee(deps, amount)?;
    Ok(EstimateWithdrawFeeResponse {
        fee: vec![Coin {
            denom: DEPOSIT_INFO.load(deps.storage)?.get_denom()?,
            amount: fee,
        }],
    })
}
// amount in UST. Equal to the value of the offered LP tokens
amount in UST. Equal to the value of the offered LP tokens
amount in UST . Equal to the value of the offered LP tokens
pub fn estimate_withdraw_fee(
    deps: Deps,
    amount: Uint128,
) -> StdResult<EstimateWithdrawFeeResponse> {
    let fee = get_withdraw_fee(deps, amount)?;
    Ok(EstimateWithdrawFeeResponse {
        fee: vec![Coin {
            denom: DEPOSIT_INFO.load(deps.storage)?.get_denom()?,
            amount: fee,
        }],
    })
}
pub fn estimate_withdraw_fee ( deps : Deps , amount : Uint128 , ) -> StdResult < EstimateWithdrawFeeResponse > { let fee = get_withdraw_fee ( deps , amount ) ? ; Ok ( EstimateWithdrawFeeResponse { fee : vec ! [ Coin { denom DEPOSIT_INFO load ( deps storage ) get_denom ( ) amount fee } ] , } ) }
amount in UST.
amount in UST .
deps
Deps
amount
Uint128
deps
Deps
amount
Uint128