Skip to content

Commit

Permalink
program: update trustless token registration interest rates and lever…
Browse files Browse the repository at this point in the history
…age and support borrowing (#760)
  • Loading branch information
microwavedcola1 authored Oct 19, 2023
1 parent 1345841 commit 33bc278
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions programs/mango-v4/src/instructions/token_register_trustless.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ pub fn token_register_trustless(
adjustment_factor: I80F48::from_num(0.004),
util0: I80F48::from_num(0.5),
rate0: I80F48::from_num(0.018),
util1: I80F48::from_num(0.8),
util1: I80F48::from_num(0.75),
rate1: I80F48::from_num(0.05),
max_rate: I80F48::from_num(0.5),
collected_fees_native: I80F48::ZERO,
loan_origination_fee_rate: I80F48::from_num(0.0005),
loan_origination_fee_rate: I80F48::from_num(0.0020),
loan_fee_rate: I80F48::from_num(0.005),
maint_asset_weight: I80F48::from_num(0),
init_asset_weight: I80F48::from_num(0),
maint_liab_weight: I80F48::from_num(1.4), // 2.5x
init_liab_weight: I80F48::from_num(1.8), // 1.25x
liquidation_fee: I80F48::from_num(0.2),
maint_asset_weight: I80F48::from_num(0.75), // 4x leverage
init_asset_weight: I80F48::from_num(0.5), // 2x leverage
maint_liab_weight: I80F48::from_num(1.25), // 4x leverage
init_liab_weight: I80F48::from_num(1.5), // 2x leverage
liquidation_fee: I80F48::from_num(0.125),
dust: I80F48::ZERO,
flash_loan_token_account_initial: u64::MAX,
flash_loan_approved_amount: 0,
Expand All @@ -87,7 +87,7 @@ pub fn token_register_trustless(
net_borrows_in_window: 0,
borrow_weight_scale_start_quote: 5_000_000_000.0, // $5k
deposit_weight_scale_start_quote: 5_000_000_000.0, // $5k
reduce_only: 2, // deposit-only
reduce_only: 0, // allow both deposits and borrows
force_close: 0,
padding: Default::default(),
fees_withdrawn: 0,
Expand Down

0 comments on commit 33bc278

Please sign in to comment.