Skip to content

Commit

Permalink
Update 1910 options to 0311
Browse files Browse the repository at this point in the history
  • Loading branch information
tensojka committed Oct 23, 2023
1 parent 3e2d351 commit db241d8
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
4 changes: 2 additions & 2 deletions src/contract.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ trait IGovernance<TContractState> {

// OPTIONS

fn add_1910_2912_options(ref self: TContractState);
fn add_0211_2912_options(ref self: TContractState);
}


Expand Down Expand Up @@ -153,7 +153,7 @@ mod Governance {
Airdrop::claim(address, amount, proof)
}

fn add_1910_2912_options(ref self: ContractState) {
fn add_0211_2912_options(ref self: ContractState) {
Options::run_add_1910_2912_options()
}
}
Expand Down
72 changes: 36 additions & 36 deletions src/options.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,12 @@ mod Options {
ref state.proposal_initializer_run, 35, true
);

add_1910_options();
add_0211_options();
add_2912_options();
}

fn add_1910_options() {
let MATURITY: felt252 = 1697759999;
fn add_0211_options() {
let MATURITY: felt252 = 1698969599;

let eth_lpt_addr: ContractAddress =
0x7aba50fdb4e024c1ba63e2c60565d0fd32566ff4b18aa5818fc80c30e749024
Expand All @@ -238,65 +238,65 @@ mod Options {
to_add
.append(
FutureOption {
name_long: 'ETHUSDC-19OCT23-1600-LONG-CALL',
name_short: 'ETHUSDC-19OCT23-1600-SHORT-CALL',
name_long: 'ETHUSDC-02NOV23-1700-LONG-CALL',
name_short: 'ETHUSDC-02NOV23-1700-SHORT-CALL',
maturity: MATURITY,
strike_price: STRIKE_PRICE_1600,
strike_price: STRIKE_PRICE_1700,
option_type: OPTION_CALL,
lptoken_address: eth_lpt_addr,
initial_volatility: VOLATILITY_30
initial_volatility: VOLATILITY_40
}
);
to_add
.append(
FutureOption {
name_long: 'ETHUSDC-19OCT23-1700-LONG-CALL',
name_short: 'ETHUSDC-19OCT23-1700-SHORT-CALL',
name_long: 'ETHUSDC-02NOV23-1800-LONG-CALL',
name_short: 'ETHUSDC-02NOV23-1800-SHORT-CALL',
maturity: MATURITY,
strike_price: STRIKE_PRICE_1700,
strike_price: STRIKE_PRICE_1800,
option_type: OPTION_CALL,
lptoken_address: eth_lpt_addr,
initial_volatility: VOLATILITY_35
initial_volatility: VOLATILITY_45
}
);
to_add
.append(
FutureOption {
name_long: 'ETHUSDC-19OCT23-1800-LONG-CALL',
name_short: 'ETHUSDC-19OCT23-1800-SHORT-CALL',
name_long: 'ETHUSDC-02NOV23-1900-LONG-CALL',
name_short: 'ETHUSDC-02NOV23-1900-SHORT-CALL',
maturity: MATURITY,
strike_price: STRIKE_PRICE_1800,
strike_price: STRIKE_PRICE_1900,
option_type: OPTION_CALL,
lptoken_address: eth_lpt_addr,
initial_volatility: VOLATILITY_46
initial_volatility: VOLATILITY_51
}
);
to_add
.append(
FutureOption {
name_long: 'ETHUSDC-19OCT23-1500-LONG-PUT',
name_short: 'ETHUSDC-19OCT23-1500-SHORT-PUT',
name_long: 'ETHUSDC-02NOV23-1500-LONG-PUT',
name_short: 'ETHUSDC-02NOV23-1500-SHORT-PUT',
maturity: MATURITY,
strike_price: STRIKE_PRICE_1500,
option_type: OPTION_PUT,
lptoken_address: usdc_lpt_addr,
initial_volatility: VOLATILITY_38
initial_volatility: VOLATILITY_47
}
);
to_add
.append(
FutureOption {
name_long: 'ETHUSDC-19OCT23-1400-LONG-PUT',
name_short: 'ETHUSDC-19OCT23-1400-SHORT-PUT',
name_long: 'ETHUSDC-02NOV23-1400-LONG-PUT',
name_short: 'ETHUSDC-02NOV23-1400-SHORT-PUT',
maturity: MATURITY,
strike_price: STRIKE_PRICE_1400,
option_type: OPTION_PUT,
lptoken_address: usdc_lpt_addr,
initial_volatility: VOLATILITY_52
initial_volatility: VOLATILITY_59
}
);

add_options(1910238812, to_add.span())
add_options(0211238812, to_add.span())
}


Expand All @@ -316,13 +316,13 @@ mod Options {
to_add
.append(
FutureOption {
name_long: 'ETHUSDC-29DEC23-1600-LONG-CALL',
name_short: 'ETHUSDC-29DEC23-1600-SHORT-CALL',
name_long: 'ETHUSDC-29DEC23-1800-LONG-CALL',
name_short: 'ETHUSDC-29DEC23-1800-SHORT-CALL',
maturity: MATURITY,
strike_price: STRIKE_PRICE_1600,
strike_price: STRIKE_PRICE_1800,
option_type: OPTION_CALL,
lptoken_address: eth_lpt_addr,
initial_volatility: VOLATILITY_33
initial_volatility: VOLATILITY_45
}
);
to_add
Expand All @@ -334,34 +334,34 @@ mod Options {
strike_price: STRIKE_PRICE_1700,
option_type: OPTION_CALL,
lptoken_address: eth_lpt_addr,
initial_volatility: VOLATILITY_35
initial_volatility: VOLATILITY_44
}
);
to_add
.append(
FutureOption {
name_long: 'ETHUSDC-29DEC23-1500-LONG-PUT',
name_short: 'ETHUSDC-29DEC23-1500-SHORT-PUT',
name_long: 'ETHUSDC-29DEC23-1600-LONG-PUT',
name_short: 'ETHUSDC-29DEC23-1600-SHORT-PUT',
maturity: MATURITY,
strike_price: STRIKE_PRICE_1500,
strike_price: STRIKE_PRICE_1600,
option_type: OPTION_PUT,
lptoken_address: usdc_lpt_addr,
initial_volatility: VOLATILITY_35
initial_volatility: VOLATILITY_43_5
}
);
to_add
.append(
FutureOption {
name_long: 'ETHUSDC-29DEC23-1400-LONG-PUT',
name_short: 'ETHUSDC-29DEC23-1400-SHORT-PUT',
name_long: 'ETHUSDC-29DEC23-1500-LONG-PUT',
name_short: 'ETHUSDC-29DEC23-1500-SHORT-PUT',
maturity: MATURITY,
strike_price: STRIKE_PRICE_1400,
strike_price: STRIKE_PRICE_1500,
option_type: OPTION_PUT,
lptoken_address: usdc_lpt_addr,
initial_volatility: VOLATILITY_40
initial_volatility: VOLATILITY_45
}
);

add_options(291223836812, to_add.span())
add_options(29122383681242, to_add.span())
}
}

0 comments on commit db241d8

Please sign in to comment.