Skip to content

Commit

Permalink
refactor: front end components
Browse files Browse the repository at this point in the history
  • Loading branch information
mikarasv committed Apr 18, 2024
1 parent e82e8e2 commit 219bdf8
Show file tree
Hide file tree
Showing 17 changed files with 610 additions and 528 deletions.
12 changes: 6 additions & 6 deletions napi-pallas/src/validations/babbage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,19 +302,19 @@ pub fn validate_babbage(mtx_b: &BabbageMintedTx, context: ValidationContext) ->
desired_number_of_stake_pools: context.n_opt,
pool_pledge_influence: RationalNumber {
numerator: context.a0_numerator as u64,
denominator: context.a0_denominator as u64, // ?
denominator: context.a0_denominator as u64,
},
expansion_rate: RationalNumber {
numerator: context.rho_numerator as u64,
denominator: context.rho_denominator as u64, // ?
denominator: context.rho_denominator as u64,
},
treasury_growth_rate: RationalNumber {
numerator: context.tau_numerator as u64,
denominator: context.tau_denominator as u64, // ?
denominator: context.tau_denominator as u64,
},
decentralization_constant: RationalNumber {
numerator: context.decentralisation_param_numerator as u64,
denominator: context.decentralisation_param_denominator as u64, // ?
denominator: context.decentralisation_param_denominator as u64,
},
extra_entropy: Nonce {
variant: NonceVariant::NeutralNonce,
Expand All @@ -333,11 +333,11 @@ pub fn validate_babbage(mtx_b: &BabbageMintedTx, context: ValidationContext) ->
execution_costs: ExUnitPrices {
mem_price: RationalNumber {
numerator: context.price_mem_numerator as u64,
denominator: context.price_mem_denominator as u64, // ?
denominator: context.price_mem_denominator as u64,
},
step_price: RationalNumber {
numerator: context.price_step_numerator as u64,
denominator: context.price_step_denominator as u64, // ?
denominator: context.price_step_denominator as u64,
},
},
max_tx_ex_units: ExUnits {
Expand Down
8 changes: 4 additions & 4 deletions napi-pallas/src/validations/shelley_ma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,19 +223,19 @@ pub fn validate_shelley_ma(
desired_number_of_stake_pools: context.n_opt,
pool_pledge_influence: RationalNumber {
numerator: context.a0_numerator as u64,
denominator: context.a0_denominator as u64, // ?
denominator: context.a0_denominator as u64,
},
expansion_rate: RationalNumber {
numerator: context.rho_numerator as u64,
denominator: context.rho_denominator as u64, // ?
denominator: context.rho_denominator as u64,
},
treasury_growth_rate: RationalNumber {
numerator: context.tau_numerator as u64,
denominator: context.tau_denominator as u64, // ?
denominator: context.tau_denominator as u64,
},
decentralization_constant: RationalNumber {
numerator: context.decentralisation_param_numerator as u64,
denominator: context.decentralisation_param_denominator as u64, // ?
denominator: context.decentralisation_param_denominator as u64,
},
extra_entropy: Nonce {
variant: NonceVariant::NeutralNonce,
Expand Down
Loading

0 comments on commit 219bdf8

Please sign in to comment.