Skip to content

Commit

Permalink
Remove leftover changes
Browse files Browse the repository at this point in the history
  • Loading branch information
--global committed Jan 17, 2024
1 parent 43a7ad1 commit 881d4d8
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion contracts/factory/src/tests/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub fn deploy_factory_contract<'a>(
env: &Env,
admin: impl Into<Option<Address>>,
) -> FactoryClient<'a> {
let admin = admin.into().unwrap_or(Address::generate(&env));
let admin = admin.into().unwrap_or(Address::generate(env));
let factory = FactoryClient::new(env, &env.register_contract(None, Factory {}));
let multihop_wasm_hash = install_multihop_wasm(env);

Expand Down
9 changes: 0 additions & 9 deletions contracts/multihop/src/storage.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
use soroban_sdk::{contracttype, Address, Env, Vec};

#[contracttype]
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Referral {
/// Address of the referral
pub address: Address,
/// fee in bps, later parsed to percentage
pub fee: i64,
}

#[contracttype]
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct Swap {
Expand Down
1 change: 0 additions & 1 deletion contracts/pool/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use crate::{
};
use decimal::Decimal;
use phoenix::{
referral::Referral,
utils::{assert_approx_ratio, StakeInitInfo, TokenInitInfo},
validate_int_parameters,
};
Expand Down
1 change: 0 additions & 1 deletion contracts/pool/src/tests/swap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use test_case::test_case;
use super::setup::{deploy_liquidity_pool_contract, deploy_token_contract};
use crate::storage::{Asset, PoolResponse, SimulateReverseSwapResponse, SimulateSwapResponse};
use decimal::Decimal;
use phoenix::referral::Referral;

#[test]
fn simple_swap() {
Expand Down

0 comments on commit 881d4d8

Please sign in to comment.