Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

3 Get fees for pools on Phoenix and Aquarius #15

@chopan123

Description

@chopan123

On Aquarius:
I need fee fraction from Zephyr
Which can be got from instance storage:

e.storage().instance().get(&DataKey::FeeFraction)

on phoenix

        let config = Config {
            max_allowed_slippage_bps: 100,
            token_a: Address::generate(&env),
            token_b: Address::generate(&env),
            share_token: Address::generate(&env),
            stake_contract: Address::generate(&env),
            pool_type: PairType::Xyk,
            total_fee_bps: 10i64,
            fee_recipient: Address::generate(&env),
            max_allowed_spread_bps: 10_i64,
            max_referral_bps: 10i64,
            default_slippage_bps: 100i64,
        };

    pub fn save_config(env: &Env, config: Config) {
    env.storage().persistent().set(&CONFIG, &config);
    env.storage().persistent().extend_ttl(
        &CONFIG,
        PERSISTENT_LIFETIME_THRESHOLD,
        PERSISTENT_BUMP_AMOUNT,
    );
}



- [ ] update it also in info

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions