Skip to content

Commit

Permalink
adjust token_register_trustless params (#810)
Browse files Browse the repository at this point in the history
- since there's no borrowing or asset weight, don't put staleness or
  confidence restrictions on the oracle
- disable the tcs fees, they are not enabled anywhere yet

(cherry picked from commit 5f8f717)
  • Loading branch information
ckamm committed Dec 6, 2023
1 parent cbfdbd1 commit 509afb0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ pub fn token_register_trustless(
vault: ctx.accounts.vault.key(),
oracle: ctx.accounts.oracle.key(),
oracle_config: OracleConfig {
conf_filter: I80F48::from_num(0.10),
max_staleness_slots: 10000,
conf_filter: I80F48::from_num(1000.0), // effectively disabled
max_staleness_slots: -1,
reserved: [0; 72],
},
stable_price_model: StablePriceModel::default(),
Expand Down Expand Up @@ -91,8 +91,8 @@ pub fn token_register_trustless(
force_close: 0,
padding: Default::default(),
fees_withdrawn: 0,
token_conditional_swap_taker_fee_rate: 0.0005,
token_conditional_swap_maker_fee_rate: 0.0005,
token_conditional_swap_taker_fee_rate: 0.0,
token_conditional_swap_maker_fee_rate: 0.0,
flash_loan_swap_fee_rate: 0.0,
interest_target_utilization: 0.5,
interest_curve_scaling: 4.0,
Expand Down

0 comments on commit 509afb0

Please sign in to comment.