@chainflip/rpc 1.11.2 → 1.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/common.d.cts CHANGED
@@ -24697,90 +24697,98 @@ declare const rpcResult: {
24697
24697
  }>, "many">;
24698
24698
  readonly cf_lending_config: z.ZodObject<{
24699
24699
  ltv_thresholds: z.ZodObject<{
24700
- minimum: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24701
- target: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24702
- topup: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24703
- soft_liquidation: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24704
- soft_liquidation_abort: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24705
- hard_liquidation: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24706
- hard_liquidation_abort: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24707
- }, "strip", z.ZodTypeAny, {
24708
- minimum: bigint;
24709
- target: bigint;
24710
- topup: bigint;
24711
- soft_liquidation: bigint;
24712
- soft_liquidation_abort: bigint;
24713
- hard_liquidation: bigint;
24714
- hard_liquidation_abort: bigint;
24715
- }, {
24716
- minimum: string | number;
24717
- target: string | number;
24718
- topup: string | number;
24719
- soft_liquidation: string | number;
24720
- soft_liquidation_abort: string | number;
24721
- hard_liquidation: string | number;
24722
- hard_liquidation_abort: string | number;
24700
+ target: z.ZodNumber;
24701
+ topup: z.ZodNumber;
24702
+ soft_liquidation: z.ZodNumber;
24703
+ soft_liquidation_abort: z.ZodNumber;
24704
+ hard_liquidation: z.ZodNumber;
24705
+ hard_liquidation_abort: z.ZodNumber;
24706
+ low_ltv: z.ZodNumber;
24707
+ }, "strip", z.ZodTypeAny, {
24708
+ target: number;
24709
+ topup: number;
24710
+ soft_liquidation: number;
24711
+ soft_liquidation_abort: number;
24712
+ hard_liquidation: number;
24713
+ hard_liquidation_abort: number;
24714
+ low_ltv: number;
24715
+ }, {
24716
+ target: number;
24717
+ topup: number;
24718
+ soft_liquidation: number;
24719
+ soft_liquidation_abort: number;
24720
+ hard_liquidation: number;
24721
+ hard_liquidation_abort: number;
24722
+ low_ltv: number;
24723
24723
  }>;
24724
24724
  network_fee_contributions: z.ZodObject<{
24725
- from_interest: z.ZodNumber;
24725
+ extra_interest: z.ZodNumber;
24726
+ interest_on_collateral_max: z.ZodNumber;
24726
24727
  from_origination_fee: z.ZodNumber;
24727
24728
  from_liquidation_fee: z.ZodNumber;
24728
24729
  }, "strip", z.ZodTypeAny, {
24729
- from_interest: number;
24730
+ extra_interest: number;
24731
+ interest_on_collateral_max: number;
24730
24732
  from_origination_fee: number;
24731
24733
  from_liquidation_fee: number;
24732
24734
  }, {
24733
- from_interest: number;
24735
+ extra_interest: number;
24736
+ interest_on_collateral_max: number;
24734
24737
  from_origination_fee: number;
24735
24738
  from_liquidation_fee: number;
24736
24739
  }>;
24737
24740
  fee_swap_interval_blocks: z.ZodNumber;
24738
24741
  interest_payment_interval_blocks: z.ZodNumber;
24739
24742
  fee_swap_threshold_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24743
+ interest_collection_threshold_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24740
24744
  liquidation_swap_chunk_size_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24741
24745
  soft_liquidation_max_oracle_slippage: z.ZodNumber;
24742
24746
  hard_liquidation_max_oracle_slippage: z.ZodNumber;
24743
24747
  fee_swap_max_oracle_slippage: z.ZodNumber;
24744
24748
  }, "strip", z.ZodTypeAny, {
24745
24749
  ltv_thresholds: {
24746
- minimum: bigint;
24747
- target: bigint;
24748
- topup: bigint;
24749
- soft_liquidation: bigint;
24750
- soft_liquidation_abort: bigint;
24751
- hard_liquidation: bigint;
24752
- hard_liquidation_abort: bigint;
24750
+ target: number;
24751
+ topup: number;
24752
+ soft_liquidation: number;
24753
+ soft_liquidation_abort: number;
24754
+ hard_liquidation: number;
24755
+ hard_liquidation_abort: number;
24756
+ low_ltv: number;
24753
24757
  };
24754
24758
  network_fee_contributions: {
24755
- from_interest: number;
24759
+ extra_interest: number;
24760
+ interest_on_collateral_max: number;
24756
24761
  from_origination_fee: number;
24757
24762
  from_liquidation_fee: number;
24758
24763
  };
24759
24764
  fee_swap_interval_blocks: number;
24760
24765
  interest_payment_interval_blocks: number;
24761
24766
  fee_swap_threshold_usd: bigint;
24767
+ interest_collection_threshold_usd: bigint;
24762
24768
  liquidation_swap_chunk_size_usd: bigint;
24763
24769
  soft_liquidation_max_oracle_slippage: number;
24764
24770
  hard_liquidation_max_oracle_slippage: number;
24765
24771
  fee_swap_max_oracle_slippage: number;
24766
24772
  }, {
24767
24773
  ltv_thresholds: {
24768
- minimum: string | number;
24769
- target: string | number;
24770
- topup: string | number;
24771
- soft_liquidation: string | number;
24772
- soft_liquidation_abort: string | number;
24773
- hard_liquidation: string | number;
24774
- hard_liquidation_abort: string | number;
24774
+ target: number;
24775
+ topup: number;
24776
+ soft_liquidation: number;
24777
+ soft_liquidation_abort: number;
24778
+ hard_liquidation: number;
24779
+ hard_liquidation_abort: number;
24780
+ low_ltv: number;
24775
24781
  };
24776
24782
  network_fee_contributions: {
24777
- from_interest: number;
24783
+ extra_interest: number;
24784
+ interest_on_collateral_max: number;
24778
24785
  from_origination_fee: number;
24779
24786
  from_liquidation_fee: number;
24780
24787
  };
24781
24788
  fee_swap_interval_blocks: number;
24782
24789
  interest_payment_interval_blocks: number;
24783
24790
  fee_swap_threshold_usd: string | number;
24791
+ interest_collection_threshold_usd: string | number;
24784
24792
  liquidation_swap_chunk_size_usd: string | number;
24785
24793
  soft_liquidation_max_oracle_slippage: number;
24786
24794
  hard_liquidation_max_oracle_slippage: number;
package/dist/common.d.ts CHANGED
@@ -24697,90 +24697,98 @@ declare const rpcResult: {
24697
24697
  }>, "many">;
24698
24698
  readonly cf_lending_config: z.ZodObject<{
24699
24699
  ltv_thresholds: z.ZodObject<{
24700
- minimum: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24701
- target: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24702
- topup: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24703
- soft_liquidation: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24704
- soft_liquidation_abort: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24705
- hard_liquidation: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24706
- hard_liquidation_abort: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24707
- }, "strip", z.ZodTypeAny, {
24708
- minimum: bigint;
24709
- target: bigint;
24710
- topup: bigint;
24711
- soft_liquidation: bigint;
24712
- soft_liquidation_abort: bigint;
24713
- hard_liquidation: bigint;
24714
- hard_liquidation_abort: bigint;
24715
- }, {
24716
- minimum: string | number;
24717
- target: string | number;
24718
- topup: string | number;
24719
- soft_liquidation: string | number;
24720
- soft_liquidation_abort: string | number;
24721
- hard_liquidation: string | number;
24722
- hard_liquidation_abort: string | number;
24700
+ target: z.ZodNumber;
24701
+ topup: z.ZodNumber;
24702
+ soft_liquidation: z.ZodNumber;
24703
+ soft_liquidation_abort: z.ZodNumber;
24704
+ hard_liquidation: z.ZodNumber;
24705
+ hard_liquidation_abort: z.ZodNumber;
24706
+ low_ltv: z.ZodNumber;
24707
+ }, "strip", z.ZodTypeAny, {
24708
+ target: number;
24709
+ topup: number;
24710
+ soft_liquidation: number;
24711
+ soft_liquidation_abort: number;
24712
+ hard_liquidation: number;
24713
+ hard_liquidation_abort: number;
24714
+ low_ltv: number;
24715
+ }, {
24716
+ target: number;
24717
+ topup: number;
24718
+ soft_liquidation: number;
24719
+ soft_liquidation_abort: number;
24720
+ hard_liquidation: number;
24721
+ hard_liquidation_abort: number;
24722
+ low_ltv: number;
24723
24723
  }>;
24724
24724
  network_fee_contributions: z.ZodObject<{
24725
- from_interest: z.ZodNumber;
24725
+ extra_interest: z.ZodNumber;
24726
+ interest_on_collateral_max: z.ZodNumber;
24726
24727
  from_origination_fee: z.ZodNumber;
24727
24728
  from_liquidation_fee: z.ZodNumber;
24728
24729
  }, "strip", z.ZodTypeAny, {
24729
- from_interest: number;
24730
+ extra_interest: number;
24731
+ interest_on_collateral_max: number;
24730
24732
  from_origination_fee: number;
24731
24733
  from_liquidation_fee: number;
24732
24734
  }, {
24733
- from_interest: number;
24735
+ extra_interest: number;
24736
+ interest_on_collateral_max: number;
24734
24737
  from_origination_fee: number;
24735
24738
  from_liquidation_fee: number;
24736
24739
  }>;
24737
24740
  fee_swap_interval_blocks: z.ZodNumber;
24738
24741
  interest_payment_interval_blocks: z.ZodNumber;
24739
24742
  fee_swap_threshold_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24743
+ interest_collection_threshold_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24740
24744
  liquidation_swap_chunk_size_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
24741
24745
  soft_liquidation_max_oracle_slippage: z.ZodNumber;
24742
24746
  hard_liquidation_max_oracle_slippage: z.ZodNumber;
24743
24747
  fee_swap_max_oracle_slippage: z.ZodNumber;
24744
24748
  }, "strip", z.ZodTypeAny, {
24745
24749
  ltv_thresholds: {
24746
- minimum: bigint;
24747
- target: bigint;
24748
- topup: bigint;
24749
- soft_liquidation: bigint;
24750
- soft_liquidation_abort: bigint;
24751
- hard_liquidation: bigint;
24752
- hard_liquidation_abort: bigint;
24750
+ target: number;
24751
+ topup: number;
24752
+ soft_liquidation: number;
24753
+ soft_liquidation_abort: number;
24754
+ hard_liquidation: number;
24755
+ hard_liquidation_abort: number;
24756
+ low_ltv: number;
24753
24757
  };
24754
24758
  network_fee_contributions: {
24755
- from_interest: number;
24759
+ extra_interest: number;
24760
+ interest_on_collateral_max: number;
24756
24761
  from_origination_fee: number;
24757
24762
  from_liquidation_fee: number;
24758
24763
  };
24759
24764
  fee_swap_interval_blocks: number;
24760
24765
  interest_payment_interval_blocks: number;
24761
24766
  fee_swap_threshold_usd: bigint;
24767
+ interest_collection_threshold_usd: bigint;
24762
24768
  liquidation_swap_chunk_size_usd: bigint;
24763
24769
  soft_liquidation_max_oracle_slippage: number;
24764
24770
  hard_liquidation_max_oracle_slippage: number;
24765
24771
  fee_swap_max_oracle_slippage: number;
24766
24772
  }, {
24767
24773
  ltv_thresholds: {
24768
- minimum: string | number;
24769
- target: string | number;
24770
- topup: string | number;
24771
- soft_liquidation: string | number;
24772
- soft_liquidation_abort: string | number;
24773
- hard_liquidation: string | number;
24774
- hard_liquidation_abort: string | number;
24774
+ target: number;
24775
+ topup: number;
24776
+ soft_liquidation: number;
24777
+ soft_liquidation_abort: number;
24778
+ hard_liquidation: number;
24779
+ hard_liquidation_abort: number;
24780
+ low_ltv: number;
24775
24781
  };
24776
24782
  network_fee_contributions: {
24777
- from_interest: number;
24783
+ extra_interest: number;
24784
+ interest_on_collateral_max: number;
24778
24785
  from_origination_fee: number;
24779
24786
  from_liquidation_fee: number;
24780
24787
  };
24781
24788
  fee_swap_interval_blocks: number;
24782
24789
  interest_payment_interval_blocks: number;
24783
24790
  fee_swap_threshold_usd: string | number;
24791
+ interest_collection_threshold_usd: string | number;
24784
24792
  liquidation_swap_chunk_size_usd: string | number;
24785
24793
  soft_liquidation_max_oracle_slippage: number;
24786
24794
  hard_liquidation_max_oracle_slippage: number;
package/dist/parsers.cjs CHANGED
@@ -629,22 +629,24 @@ var cfLendingPools = _zod.z.array(
629
629
  );
630
630
  var cfLendingConfig = _zod.z.object({
631
631
  ltv_thresholds: _zod.z.object({
632
- minimum: numberOrHex,
633
- target: numberOrHex,
634
- topup: numberOrHex,
635
- soft_liquidation: numberOrHex,
636
- soft_liquidation_abort: numberOrHex,
637
- hard_liquidation: numberOrHex,
638
- hard_liquidation_abort: numberOrHex
632
+ target: _zod.z.number(),
633
+ topup: _zod.z.number(),
634
+ soft_liquidation: _zod.z.number(),
635
+ soft_liquidation_abort: _zod.z.number(),
636
+ hard_liquidation: _zod.z.number(),
637
+ hard_liquidation_abort: _zod.z.number(),
638
+ low_ltv: _zod.z.number()
639
639
  }),
640
640
  network_fee_contributions: _zod.z.object({
641
- from_interest: _zod.z.number(),
641
+ extra_interest: _zod.z.number(),
642
+ interest_on_collateral_max: _zod.z.number(),
642
643
  from_origination_fee: _zod.z.number(),
643
644
  from_liquidation_fee: _zod.z.number()
644
645
  }),
645
646
  fee_swap_interval_blocks: _zod.z.number(),
646
647
  interest_payment_interval_blocks: _zod.z.number(),
647
648
  fee_swap_threshold_usd: numberOrHex,
649
+ interest_collection_threshold_usd: numberOrHex,
648
650
  liquidation_swap_chunk_size_usd: numberOrHex,
649
651
  soft_liquidation_max_oracle_slippage: _zod.z.number(),
650
652
  hard_liquidation_max_oracle_slippage: _zod.z.number(),
@@ -29017,90 +29017,98 @@ declare const cfLendingPools: z.ZodArray<z.ZodObject<{
29017
29017
  }>, "many">;
29018
29018
  declare const cfLendingConfig: z.ZodObject<{
29019
29019
  ltv_thresholds: z.ZodObject<{
29020
- minimum: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29021
- target: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29022
- topup: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29023
- soft_liquidation: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29024
- soft_liquidation_abort: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29025
- hard_liquidation: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29026
- hard_liquidation_abort: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29027
- }, "strip", z.ZodTypeAny, {
29028
- minimum: bigint;
29029
- target: bigint;
29030
- topup: bigint;
29031
- soft_liquidation: bigint;
29032
- soft_liquidation_abort: bigint;
29033
- hard_liquidation: bigint;
29034
- hard_liquidation_abort: bigint;
29035
- }, {
29036
- minimum: string | number;
29037
- target: string | number;
29038
- topup: string | number;
29039
- soft_liquidation: string | number;
29040
- soft_liquidation_abort: string | number;
29041
- hard_liquidation: string | number;
29042
- hard_liquidation_abort: string | number;
29020
+ target: z.ZodNumber;
29021
+ topup: z.ZodNumber;
29022
+ soft_liquidation: z.ZodNumber;
29023
+ soft_liquidation_abort: z.ZodNumber;
29024
+ hard_liquidation: z.ZodNumber;
29025
+ hard_liquidation_abort: z.ZodNumber;
29026
+ low_ltv: z.ZodNumber;
29027
+ }, "strip", z.ZodTypeAny, {
29028
+ target: number;
29029
+ topup: number;
29030
+ soft_liquidation: number;
29031
+ soft_liquidation_abort: number;
29032
+ hard_liquidation: number;
29033
+ hard_liquidation_abort: number;
29034
+ low_ltv: number;
29035
+ }, {
29036
+ target: number;
29037
+ topup: number;
29038
+ soft_liquidation: number;
29039
+ soft_liquidation_abort: number;
29040
+ hard_liquidation: number;
29041
+ hard_liquidation_abort: number;
29042
+ low_ltv: number;
29043
29043
  }>;
29044
29044
  network_fee_contributions: z.ZodObject<{
29045
- from_interest: z.ZodNumber;
29045
+ extra_interest: z.ZodNumber;
29046
+ interest_on_collateral_max: z.ZodNumber;
29046
29047
  from_origination_fee: z.ZodNumber;
29047
29048
  from_liquidation_fee: z.ZodNumber;
29048
29049
  }, "strip", z.ZodTypeAny, {
29049
- from_interest: number;
29050
+ extra_interest: number;
29051
+ interest_on_collateral_max: number;
29050
29052
  from_origination_fee: number;
29051
29053
  from_liquidation_fee: number;
29052
29054
  }, {
29053
- from_interest: number;
29055
+ extra_interest: number;
29056
+ interest_on_collateral_max: number;
29054
29057
  from_origination_fee: number;
29055
29058
  from_liquidation_fee: number;
29056
29059
  }>;
29057
29060
  fee_swap_interval_blocks: z.ZodNumber;
29058
29061
  interest_payment_interval_blocks: z.ZodNumber;
29059
29062
  fee_swap_threshold_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29063
+ interest_collection_threshold_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29060
29064
  liquidation_swap_chunk_size_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29061
29065
  soft_liquidation_max_oracle_slippage: z.ZodNumber;
29062
29066
  hard_liquidation_max_oracle_slippage: z.ZodNumber;
29063
29067
  fee_swap_max_oracle_slippage: z.ZodNumber;
29064
29068
  }, "strip", z.ZodTypeAny, {
29065
29069
  ltv_thresholds: {
29066
- minimum: bigint;
29067
- target: bigint;
29068
- topup: bigint;
29069
- soft_liquidation: bigint;
29070
- soft_liquidation_abort: bigint;
29071
- hard_liquidation: bigint;
29072
- hard_liquidation_abort: bigint;
29070
+ target: number;
29071
+ topup: number;
29072
+ soft_liquidation: number;
29073
+ soft_liquidation_abort: number;
29074
+ hard_liquidation: number;
29075
+ hard_liquidation_abort: number;
29076
+ low_ltv: number;
29073
29077
  };
29074
29078
  network_fee_contributions: {
29075
- from_interest: number;
29079
+ extra_interest: number;
29080
+ interest_on_collateral_max: number;
29076
29081
  from_origination_fee: number;
29077
29082
  from_liquidation_fee: number;
29078
29083
  };
29079
29084
  fee_swap_interval_blocks: number;
29080
29085
  interest_payment_interval_blocks: number;
29081
29086
  fee_swap_threshold_usd: bigint;
29087
+ interest_collection_threshold_usd: bigint;
29082
29088
  liquidation_swap_chunk_size_usd: bigint;
29083
29089
  soft_liquidation_max_oracle_slippage: number;
29084
29090
  hard_liquidation_max_oracle_slippage: number;
29085
29091
  fee_swap_max_oracle_slippage: number;
29086
29092
  }, {
29087
29093
  ltv_thresholds: {
29088
- minimum: string | number;
29089
- target: string | number;
29090
- topup: string | number;
29091
- soft_liquidation: string | number;
29092
- soft_liquidation_abort: string | number;
29093
- hard_liquidation: string | number;
29094
- hard_liquidation_abort: string | number;
29094
+ target: number;
29095
+ topup: number;
29096
+ soft_liquidation: number;
29097
+ soft_liquidation_abort: number;
29098
+ hard_liquidation: number;
29099
+ hard_liquidation_abort: number;
29100
+ low_ltv: number;
29095
29101
  };
29096
29102
  network_fee_contributions: {
29097
- from_interest: number;
29103
+ extra_interest: number;
29104
+ interest_on_collateral_max: number;
29098
29105
  from_origination_fee: number;
29099
29106
  from_liquidation_fee: number;
29100
29107
  };
29101
29108
  fee_swap_interval_blocks: number;
29102
29109
  interest_payment_interval_blocks: number;
29103
29110
  fee_swap_threshold_usd: string | number;
29111
+ interest_collection_threshold_usd: string | number;
29104
29112
  liquidation_swap_chunk_size_usd: string | number;
29105
29113
  soft_liquidation_max_oracle_slippage: number;
29106
29114
  hard_liquidation_max_oracle_slippage: number;
package/dist/parsers.d.ts CHANGED
@@ -29017,90 +29017,98 @@ declare const cfLendingPools: z.ZodArray<z.ZodObject<{
29017
29017
  }>, "many">;
29018
29018
  declare const cfLendingConfig: z.ZodObject<{
29019
29019
  ltv_thresholds: z.ZodObject<{
29020
- minimum: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29021
- target: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29022
- topup: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29023
- soft_liquidation: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29024
- soft_liquidation_abort: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29025
- hard_liquidation: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29026
- hard_liquidation_abort: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29027
- }, "strip", z.ZodTypeAny, {
29028
- minimum: bigint;
29029
- target: bigint;
29030
- topup: bigint;
29031
- soft_liquidation: bigint;
29032
- soft_liquidation_abort: bigint;
29033
- hard_liquidation: bigint;
29034
- hard_liquidation_abort: bigint;
29035
- }, {
29036
- minimum: string | number;
29037
- target: string | number;
29038
- topup: string | number;
29039
- soft_liquidation: string | number;
29040
- soft_liquidation_abort: string | number;
29041
- hard_liquidation: string | number;
29042
- hard_liquidation_abort: string | number;
29020
+ target: z.ZodNumber;
29021
+ topup: z.ZodNumber;
29022
+ soft_liquidation: z.ZodNumber;
29023
+ soft_liquidation_abort: z.ZodNumber;
29024
+ hard_liquidation: z.ZodNumber;
29025
+ hard_liquidation_abort: z.ZodNumber;
29026
+ low_ltv: z.ZodNumber;
29027
+ }, "strip", z.ZodTypeAny, {
29028
+ target: number;
29029
+ topup: number;
29030
+ soft_liquidation: number;
29031
+ soft_liquidation_abort: number;
29032
+ hard_liquidation: number;
29033
+ hard_liquidation_abort: number;
29034
+ low_ltv: number;
29035
+ }, {
29036
+ target: number;
29037
+ topup: number;
29038
+ soft_liquidation: number;
29039
+ soft_liquidation_abort: number;
29040
+ hard_liquidation: number;
29041
+ hard_liquidation_abort: number;
29042
+ low_ltv: number;
29043
29043
  }>;
29044
29044
  network_fee_contributions: z.ZodObject<{
29045
- from_interest: z.ZodNumber;
29045
+ extra_interest: z.ZodNumber;
29046
+ interest_on_collateral_max: z.ZodNumber;
29046
29047
  from_origination_fee: z.ZodNumber;
29047
29048
  from_liquidation_fee: z.ZodNumber;
29048
29049
  }, "strip", z.ZodTypeAny, {
29049
- from_interest: number;
29050
+ extra_interest: number;
29051
+ interest_on_collateral_max: number;
29050
29052
  from_origination_fee: number;
29051
29053
  from_liquidation_fee: number;
29052
29054
  }, {
29053
- from_interest: number;
29055
+ extra_interest: number;
29056
+ interest_on_collateral_max: number;
29054
29057
  from_origination_fee: number;
29055
29058
  from_liquidation_fee: number;
29056
29059
  }>;
29057
29060
  fee_swap_interval_blocks: z.ZodNumber;
29058
29061
  interest_payment_interval_blocks: z.ZodNumber;
29059
29062
  fee_swap_threshold_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29063
+ interest_collection_threshold_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29060
29064
  liquidation_swap_chunk_size_usd: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>, z.ZodString]>, bigint, string | number>;
29061
29065
  soft_liquidation_max_oracle_slippage: z.ZodNumber;
29062
29066
  hard_liquidation_max_oracle_slippage: z.ZodNumber;
29063
29067
  fee_swap_max_oracle_slippage: z.ZodNumber;
29064
29068
  }, "strip", z.ZodTypeAny, {
29065
29069
  ltv_thresholds: {
29066
- minimum: bigint;
29067
- target: bigint;
29068
- topup: bigint;
29069
- soft_liquidation: bigint;
29070
- soft_liquidation_abort: bigint;
29071
- hard_liquidation: bigint;
29072
- hard_liquidation_abort: bigint;
29070
+ target: number;
29071
+ topup: number;
29072
+ soft_liquidation: number;
29073
+ soft_liquidation_abort: number;
29074
+ hard_liquidation: number;
29075
+ hard_liquidation_abort: number;
29076
+ low_ltv: number;
29073
29077
  };
29074
29078
  network_fee_contributions: {
29075
- from_interest: number;
29079
+ extra_interest: number;
29080
+ interest_on_collateral_max: number;
29076
29081
  from_origination_fee: number;
29077
29082
  from_liquidation_fee: number;
29078
29083
  };
29079
29084
  fee_swap_interval_blocks: number;
29080
29085
  interest_payment_interval_blocks: number;
29081
29086
  fee_swap_threshold_usd: bigint;
29087
+ interest_collection_threshold_usd: bigint;
29082
29088
  liquidation_swap_chunk_size_usd: bigint;
29083
29089
  soft_liquidation_max_oracle_slippage: number;
29084
29090
  hard_liquidation_max_oracle_slippage: number;
29085
29091
  fee_swap_max_oracle_slippage: number;
29086
29092
  }, {
29087
29093
  ltv_thresholds: {
29088
- minimum: string | number;
29089
- target: string | number;
29090
- topup: string | number;
29091
- soft_liquidation: string | number;
29092
- soft_liquidation_abort: string | number;
29093
- hard_liquidation: string | number;
29094
- hard_liquidation_abort: string | number;
29094
+ target: number;
29095
+ topup: number;
29096
+ soft_liquidation: number;
29097
+ soft_liquidation_abort: number;
29098
+ hard_liquidation: number;
29099
+ hard_liquidation_abort: number;
29100
+ low_ltv: number;
29095
29101
  };
29096
29102
  network_fee_contributions: {
29097
- from_interest: number;
29103
+ extra_interest: number;
29104
+ interest_on_collateral_max: number;
29098
29105
  from_origination_fee: number;
29099
29106
  from_liquidation_fee: number;
29100
29107
  };
29101
29108
  fee_swap_interval_blocks: number;
29102
29109
  interest_payment_interval_blocks: number;
29103
29110
  fee_swap_threshold_usd: string | number;
29111
+ interest_collection_threshold_usd: string | number;
29104
29112
  liquidation_swap_chunk_size_usd: string | number;
29105
29113
  soft_liquidation_max_oracle_slippage: number;
29106
29114
  hard_liquidation_max_oracle_slippage: number;
package/dist/parsers.mjs CHANGED
@@ -629,22 +629,24 @@ var cfLendingPools = z.array(
629
629
  );
630
630
  var cfLendingConfig = z.object({
631
631
  ltv_thresholds: z.object({
632
- minimum: numberOrHex,
633
- target: numberOrHex,
634
- topup: numberOrHex,
635
- soft_liquidation: numberOrHex,
636
- soft_liquidation_abort: numberOrHex,
637
- hard_liquidation: numberOrHex,
638
- hard_liquidation_abort: numberOrHex
632
+ target: z.number(),
633
+ topup: z.number(),
634
+ soft_liquidation: z.number(),
635
+ soft_liquidation_abort: z.number(),
636
+ hard_liquidation: z.number(),
637
+ hard_liquidation_abort: z.number(),
638
+ low_ltv: z.number()
639
639
  }),
640
640
  network_fee_contributions: z.object({
641
- from_interest: z.number(),
641
+ extra_interest: z.number(),
642
+ interest_on_collateral_max: z.number(),
642
643
  from_origination_fee: z.number(),
643
644
  from_liquidation_fee: z.number()
644
645
  }),
645
646
  fee_swap_interval_blocks: z.number(),
646
647
  interest_payment_interval_blocks: z.number(),
647
648
  fee_swap_threshold_usd: numberOrHex,
649
+ interest_collection_threshold_usd: numberOrHex,
648
650
  liquidation_swap_chunk_size_usd: numberOrHex,
649
651
  soft_liquidation_max_oracle_slippage: z.number(),
650
652
  hard_liquidation_max_oracle_slippage: z.number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainflip/rpc",
3
- "version": "1.11.2",
3
+ "version": "1.11.4",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@chainflip/utils": "0.11.0",