Remove test for (un)subsidized tokens
@@ -303,69 +303,6 @@ fn test_ticker_formula() {
}
}
-#[test]
-fn test_fee_for_unsubsidized_tokens() {
- let validator = FeeTokenValidator::new(HashMap::new(), Default::default());
-
- let config = get_test_ticker_config();
- let mut ticker = FeeTicker::new(
- MockApiProvider,
- MockTickerInfo,
- mpsc::channel(1).1,
- config,
- validator,
- );
-
- let mut get_gas_amount =
- |tx_type: TxFeeTypes, token: TokenLike, address: Address| -> num::BigUint {
- block_on(ticker.get_fee_from_ticker_in_wei(tx_type, token, address))
- .expect("failed to get fee in token")
- .gas_tx_amount
- };
-
- for subsidized_tokens in TestToken::subsidized_tokens() {
- for unsubsidized_tokens in TestToken::unsubsidized_tokens() {
- assert!(
- get_gas_amount(
- TxFeeTypes::Transfer,
- subsidized_tokens.id.into(),
- Address::default()
- ) < get_gas_amount(
- TxFeeTypes::Transfer,
- unsubsidized_tokens.id.into(),
- Address::default()
- )
- );
- assert!(
- get_gas_amount(
- TxFeeTypes::Withdraw,
- subsidized_tokens.id.into(),
- Address::default()
- ) < get_gas_amount(
- TxFeeTypes::Withdraw,
- unsubsidized_tokens.id.into(),
- Address::default()
- )
- );
- assert!(
- get_gas_amount(
- TxFeeTypes::ChangePubKey {
- onchain_pubkey_auth: false
- },
- subsidized_tokens.id.into(),
- Address::default()
- ) < get_gas_amount(
- TxFeeTypes::ChangePubKey {
- onchain_pubkey_auth: false
- },
- unsubsidized_tokens.id.into(),
- Address::default()
- )
- );
- }
- }
-}
-
#[actix_rt::test]
#[ignore]
// It's ignore because we can't initialize coingecko in current way with block
