Skip to content

framework upgrade v0.63#1063

Merged
psorinionut merged 15 commits intorc/supernova-updatesfrom
framework-upgrade-0.63
Jan 20, 2026
Merged

framework upgrade v0.63#1063
psorinionut merged 15 commits intorc/supernova-updatesfrom
framework-upgrade-0.63

Conversation

@psorinionut
Copy link
Contributor

No description provided.

@psorinionut psorinionut changed the base branch from repo-clippy-fixes to main November 27, 2025 23:40
@github-actions
Copy link

github-actions bot commented Nov 27, 2025

Coverage Summary

Totals

Count Covered %
Lines 37261 33400 89.64
Regions 55780 50032 89.70
Functions 3083 2130 69.09
Instantiations 18640 5327 28.58

Files

Expand
File Lines Regions Functions Instantiations
/common/common_structs/src/farm_types.rs 79.59% 83.58% 50.00% 30.68%
/common/common_structs/src/locked_token_types.rs 36.69% 36.08% 11.43% 1.32%
/common/common_structs/src/wrapper_types.rs 47.83% 45.45% 17.65% 5.22%
/common/modules/farm/config/src/config.rs 50.00% 50.00% 50.00% 38.89%
/common/modules/farm/contexts/src/claim_rewards_context.rs 92.59% 81.25% 100.00% 73.68%
/common/modules/farm/contexts/src/enter_farm_context.rs 90.48% 75.00% 100.00% 83.33%
/common/modules/farm/contexts/src/exit_farm_context.rs 94.74% 85.71% 100.00% 68.42%
/common/modules/farm/contexts/src/storage_cache.rs 100.00% 100.00% 100.00% 59.38%
/common/modules/farm/events/src/events.rs 95.61% 96.38% 44.44% 26.92%
/common/modules/farm/farm_base_impl/src/base_farm_init.rs 76.92% 76.09% 50.00% 33.96%
/common/modules/farm/farm_base_impl/src/base_farm_validation.rs 66.67% 66.67% 50.00% 38.00%
/common/modules/farm/farm_base_impl/src/base_traits_impl.rs 84.27% 89.56% 78.57% 51.52%
/common/modules/farm/farm_base_impl/src/claim_rewards.rs 98.36% 98.91% 66.67% 39.44%
/common/modules/farm/farm_base_impl/src/compound_rewards.rs 96.00% 97.40% 50.00% 13.51%
/common/modules/farm/farm_base_impl/src/enter_farm.rs 97.22% 97.96% 50.00% 37.25%
/common/modules/farm/farm_base_impl/src/exit_farm.rs 97.56% 98.36% 50.00% 33.33%
/common/modules/farm/farm_base_impl/src/lib.rs 0.00% 0.00% 0.00% 0.00%
/common/modules/farm/farm_token/src/farm_token.rs 0.00% 0.00% 0.00% 0.00%
/common/modules/farm/rewards/src/rewards.rs 18.18% 17.65% 33.33% 23.53%
/common/modules/legacy_token_decode_module/src/lib.rs 88.89% 93.33% 50.00% 2.08%
/common/modules/locking_module/src/lock_with_energy_module.rs 94.12% 97.30% 80.00% 29.51%
/common/modules/locking_module/src/locking_module.rs 77.27% 77.08% 57.14% 23.53%
/common/modules/math/src/lib.rs 97.37% 93.48% 100.00% 31.19%
/common/modules/original_owner_helper/src/lib.rs 96.97% 98.28% 66.67% 9.68%
/common/modules/pausable/src/pausable.rs 56.25% 66.67% 50.00% 4.96%
/common/modules/permissions_hub_module/src/permissions_hub_module.rs 91.67% 95.24% 66.67% 20.59%
/common/modules/permissions_module/src/permissions.rs 64.71% 59.09% 50.00% 56.76%
/common/modules/permissions_module/src/permissions_module.rs 59.52% 55.29% 60.00% 24.66%
/common/modules/sc_whitelist_module/src/sc_whitelist_module.rs 63.16% 56.10% 50.00% 22.22%
/common/modules/token_merge_helper/src/lib.rs 0.00% 0.00% 0.00% 0.00%
/common/modules/token_send/src/token_send.rs 90.48% 94.12% 75.00% 51.75%
/common/modules/utils/src/lib.rs 94.12% 94.17% 83.33% 41.54%
/common/traits/fixed-supply-token/src/lib.rs 94.44% 86.96% 100.00% 53.33%
/common/traits/mergeable/src/lib.rs 54.84% 61.54% 57.14% 14.18%
/common/traits/unwrappable/src/lib.rs 75.00% 57.14% 50.00% 23.85%
/dex/farm-with-locked-rewards/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/dex/farm-with-locked-rewards/src/external_interaction.rs 97.67% 99.05% 75.00% 25.00%
/dex/farm-with-locked-rewards/src/lib.rs 89.37% 92.15% 73.68% 35.65%
/dex/farm-with-locked-rewards/tests/farm_with_locked_rewards_setup/fees_collector_mock.rs 50.00% 50.00% 50.00% 50.00%
/dex/farm-with-locked-rewards/tests/farm_with_locked_rewards_setup/mod.rs 99.59% 99.69% 100.00% 100.00%
/dex/farm-with-locked-rewards/tests/farm_with_locked_rewards_test.rs 98.54% 99.04% 100.00% 100.00%
/dex/farm/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/dex/farm/src/base_functions.rs 94.90% 94.44% 85.71% 41.36%
/dex/farm/src/exit_penalty.rs 47.83% 45.45% 20.00% 8.43%
/dex/farm/src/external_interaction.rs 96.67% 98.80% 66.67% 5.71%
/dex/farm/src/lib.rs 94.12% 96.09% 86.67% 25.98%
/dex/farm/tests/block_to_timestamp_test.rs 95.81% 97.73% 100.00% 100.00%
/dex/farm/tests/energy_update_test.rs 100.00% 100.00% 100.00% 100.00%
/dex/farm/tests/external_interaction_test.rs 100.00% 100.00% 100.00% 100.00%
/dex/farm/tests/farm_multi_user_test.rs 100.00% 100.00% 100.00% 100.00%
/dex/farm/tests/farm_review_distribution.rs 100.00% 100.00% 100.00% 100.00%
/dex/farm/tests/farm_setup/farm_rewards_distr_setup.rs 97.35% 97.33% 94.12% 13.45%
/dex/farm/tests/farm_setup/multi_user_farm_setup.rs 97.49% 98.43% 97.33% 24.95%
/dex/farm/tests/farm_setup/single_user_farm_setup.rs 88.81% 92.25% 87.50% 12.50%
/dex/farm/tests/farm_single_user_test.rs 100.00% 100.00% 100.00% 100.00%
/dex/farm/tests/total_farm_position_test.rs 100.00% 100.00% 100.00% 100.00%
/dex/fuzz/src/fuzz_data.rs 99.73% 99.76% 92.31% 92.31%
/dex/fuzz/src/fuzz_farm.rs 93.04% 95.75% 100.00% 100.00%
/dex/fuzz/src/fuzz_pair.rs 84.88% 86.59% 100.00% 100.00%
/dex/fuzz/src/fuzz_price_discovery.rs 84.91% 88.12% 100.00% 100.00%
/dex/fuzz/src/fuzz_start.rs 99.31% 98.70% 100.00% 100.00%
/dex/governance/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/dex/governance/src/config.rs 56.60% 59.65% 50.00% 20.00%
/dex/governance/src/events.rs 97.78% 98.25% 80.00% 28.57%
/dex/governance/src/lib.rs 98.68% 99.49% 87.50% 30.43%
/dex/governance/src/proposal.rs 67.24% 65.59% 26.67% 11.43%
/dex/governance/src/validation.rs 80.00% 83.33% 50.00% 20.00%
/dex/governance/src/vote.rs 84.21% 86.36% 33.33% 13.64%
/dex/governance/src/weight.rs 74.07% 82.93% 66.67% 25.00%
/dex/governance/tests/gov_tests.rs 100.00% 100.00% 100.00% 100.00%
/dex/pair-mock/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/dex/pair-mock/src/pair.rs 45.95% 40.00% 50.00% 22.22%
/dex/pair/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/dex/pair/src/amm.rs 95.24% 96.67% 85.71% 26.67%
/dex/pair/src/config.rs 53.33% 60.71% 40.00% 17.39%
/dex/pair/src/contexts/add_liquidity.rs 100.00% 100.00% 100.00% 66.67%
/dex/pair/src/contexts/base.rs 100.00% 100.00% 100.00% 46.79%
/dex/pair/src/contexts/output_builder.rs 98.94% 99.12% 88.89% 31.30%
/dex/pair/src/contexts/remove_liquidity.rs 100.00% 100.00% 100.00% 33.33%
/dex/pair/src/contexts/swap.rs 100.00% 100.00% 100.00% 41.67%
/dex/pair/src/events.rs 75.53% 77.78% 33.33% 16.10%
/dex/pair/src/fee.rs 38.83% 38.35% 45.83% 6.10%
/dex/pair/src/lib.rs 58.70% 59.77% 66.67% 28.89%
/dex/pair/src/liquidity_pool.rs 92.11% 91.49% 88.89% 26.92%
/dex/pair/src/locking_wrapper.rs 90.91% 90.91% 77.78% 9.73%
/dex/pair/src/pair_actions/add_liq.rs 88.33% 92.31% 50.00% 31.03%
/dex/pair/src/pair_actions/common_methods.rs 80.00% 83.33% 66.67% 36.36%
/dex/pair/src/pair_actions/initial_liq.rs 87.50% 91.36% 50.00% 4.00%
/dex/pair/src/pair_actions/remove_liq.rs 91.36% 94.37% 66.67% 18.42%
/dex/pair/src/pair_actions/swap.rs 73.96% 72.21% 44.44% 18.18%
/dex/pair/src/pair_actions/views.rs 72.13% 70.67% 66.67% 5.56%
/dex/pair/src/read_pair_storage.rs 97.30% 98.04% 90.00% 24.11%
/dex/pair/src/safe_price.rs 93.10% 91.37% 78.57% 24.55%
/dex/pair/src/safe_price_view.rs 66.34% 69.59% 65.22% 9.49%
/dex/pair/tests/pair_rs_test.rs 99.87% 99.86% 97.37% 97.37%
/dex/pair/tests/pair_setup/mod.rs 100.00% 100.00% 100.00% 100.00%
/dex/permissions-hub/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/dex/permissions-hub/src/lib.rs 86.36% 87.50% 66.67% 12.82%
/dex/price-discovery/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/dex/price-discovery/src/common_storage.rs 0.00% 0.00% 0.00% 0.00%
/dex/price-discovery/src/events.rs 94.03% 95.70% 42.86% 17.65%
/dex/price-discovery/src/lib.rs 98.16% 98.02% 90.91% 31.25%
/dex/price-discovery/src/phase.rs 91.53% 93.59% 55.56% 23.81%
/dex/price-discovery/src/redeem_token.rs 37.14% 41.94% 62.50% 23.81%
/dex/price-discovery/tests/price_disc_tests.rs 100.00% 100.00% 100.00% 100.00%
/dex/price-discovery/tests/tests_common.rs 100.00% 100.00% 100.00% 50.00%
/dex/proxy-deployer/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/dex/proxy-deployer/src/farm_deploy.rs 0.00% 0.00% 0.00% 0.00%
/dex/proxy-deployer/src/lib.rs 0.00% 0.00% 0.00% 0.00%
/dex/router/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/dex/router/src/config.rs 80.00% 79.59% 40.00% 12.77%
/dex/router/src/contract.rs 48.61% 51.78% 70.59% 15.88%
/dex/router/src/enable_swap_by_user.rs 91.13% 93.61% 73.33% 7.69%
/dex/router/src/events.rs 92.19% 94.51% 42.86% 7.58%
/dex/router/src/factory.rs 60.00% 52.94% 25.00% 8.90%
/dex/router/src/multi_pair_swap.rs 61.82% 70.09% 50.00% 10.26%
/dex/router/tests/router_setup/mod.rs 100.00% 100.00% 100.00% 100.00%
/dex/router/tests/router_test.rs 100.00% 100.00% 100.00% 100.00%
/dex/tests/dex_scenario_go_test.rs 100.00% 100.00% 100.00% 100.00%
/dex/tests/dex_scenario_rs_test.rs 100.00% 100.00% 100.00% 100.00%
/energy-integration/common-modules/energy-query/src/lib.rs 92.31% 94.94% 80.00% 34.86%
/energy-integration/common-modules/week-timekeeping/src/lib.rs 55.56% 54.29% 40.00% 45.28%
/energy-integration/common-modules/weekly-rewards-splitting/src/base_impl.rs 48.89% 48.98% 66.67% 33.33%
/energy-integration/common-modules/weekly-rewards-splitting/src/events.rs 90.00% 95.83% 75.00% 42.65%
/energy-integration/common-modules/weekly-rewards-splitting/src/global_info.rs 98.84% 99.23% 85.71% 50.40%
/energy-integration/common-modules/weekly-rewards-splitting/src/lib.rs 75.31% 76.92% 44.44% 14.40%
/energy-integration/common-modules/weekly-rewards-splitting/src/locked_token_buckets.rs 94.44% 96.72% 72.73% 31.79%
/energy-integration/common-modules/weekly-rewards-splitting/src/update_claim_progress_energy.rs 91.53% 92.55% 80.00% 34.90%
/energy-integration/common-types/src/lib.rs 0.00% 0.00% 0.00% 0.00%
/energy-integration/energy-factory-mock/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/energy-integration/energy-factory-mock/src/lib.rs 7.69% 9.09% 16.67% 4.17%
/energy-integration/energy-update/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/energy-integration/energy-update/src/lib.rs 0.00% 0.00% 0.00% 0.00%
/energy-integration/farm-boosted-yields/src/boosted_yields_factors.rs 85.44% 81.82% 50.00% 21.23%
/energy-integration/farm-boosted-yields/src/lib.rs 96.72% 97.08% 90.91% 39.76%
/energy-integration/farm-boosted-yields/src/undistributed_rewards.rs 86.11% 87.10% 66.67% 9.52%
/energy-integration/fees-collector/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/energy-integration/fees-collector/src/additional_locked_tokens.rs 94.74% 97.44% 75.00% 20.00%
/energy-integration/fees-collector/src/claim.rs 93.94% 94.87% 77.78% 18.18%
/energy-integration/fees-collector/src/config.rs 60.00% 65.57% 50.00% 18.92%
/energy-integration/fees-collector/src/events.rs 66.67% 85.71% 50.00% 18.18%
/energy-integration/fees-collector/src/external_sc_interactions/router.rs 97.78% 98.81% 83.33% 18.92%
/energy-integration/fees-collector/src/fees_accumulation.rs 97.56% 98.63% 91.67% 16.67%
/energy-integration/fees-collector/src/lib.rs 85.29% 85.51% 66.67% 21.05%
/energy-integration/fees-collector/src/redistribute_rewards.rs 91.67% 95.45% 66.67% 11.76%
/energy-integration/fees-collector/tests/fees_collector_rust_test.rs 99.35% 99.56% 100.00% 100.00%
/energy-integration/fees-collector/tests/fees_collector_test_setup/mod.rs 100.00% 100.00% 100.00% 100.00%
/energy-integration/fees-collector/tests/router_setup/mod.rs 100.00% 100.00% 100.00% 100.00%
/energy-integration/governance-v2/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/energy-integration/governance-v2/src/configurable.rs 75.56% 73.75% 60.00% 23.08%
/energy-integration/governance-v2/src/events.rs 0.00% 0.00% 0.00% 0.00%
/energy-integration/governance-v2/src/lib.rs 96.91% 98.48% 91.67% 31.43%
/energy-integration/governance-v2/src/proposal.rs 62.50% 55.00% 26.67% 15.38%
/energy-integration/governance-v2/src/proposal_storage.rs 75.00% 76.00% 40.00% 20.00%
/energy-integration/governance-v2/src/views.rs 92.59% 94.44% 77.78% 28.00%
/energy-integration/governance-v2/tests/gov_rust_test.rs 97.65% 98.36% 100.00% 100.00%
/energy-integration/governance-v2/tests/gov_test_setup/mod.rs 99.56% 99.71% 100.00% 100.00%
/farm-staking/farm-staking-proxy/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/farm-staking/farm-staking-proxy/src/dual_yield_token.rs 62.50% 65.91% 42.86% 18.75%
/farm-staking/farm-staking-proxy/src/external_contracts_interactions.rs 96.00% 97.47% 88.89% 30.77%
/farm-staking/farm-staking-proxy/src/lib.rs 95.24% 98.00% 50.00% 20.00%
/farm-staking/farm-staking-proxy/src/lp_farm_token.rs 90.00% 92.31% 50.00% 20.00%
/farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs 97.87% 98.86% 66.67% 25.00%
/farm-staking/farm-staking-proxy/src/proxy_actions/external_interaction.rs 98.36% 99.25% 80.00% 28.57%
/farm-staking/farm-staking-proxy/src/proxy_actions/stake.rs 98.46% 99.10% 66.67% 25.00%
/farm-staking/farm-staking-proxy/src/proxy_actions/unstake.rs 96.97% 98.44% 50.00% 20.00%
/farm-staking/farm-staking-proxy/src/result_types.rs 63.64% 67.78% 25.00% 14.29%
/farm-staking/farm-staking-proxy/tests/staking_farm_with_lp.rs 100.00% 100.00% 100.00% 100.00%
/farm-staking/farm-staking-proxy/tests/staking_farm_with_lp_external_contracts/mod.rs 100.00% 100.00% 100.00% 100.00%
/farm-staking/farm-staking-proxy/tests/staking_farm_with_lp_staking_contract_interactions/mod.rs 100.00% 100.00% 100.00% 100.00%
/farm-staking/farm-staking-proxy/tests/staking_farm_with_lp_staking_contract_setup/mod.rs 100.00% 100.00% 100.00% 100.00%
/farm-staking/farm-staking/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/farm-staking/farm-staking/src/base_impl_wrapper.rs 96.47% 98.43% 92.31% 52.34%
/farm-staking/farm-staking/src/claim_only_boosted_staking_rewards.rs 92.98% 97.06% 85.71% 35.71%
/farm-staking/farm-staking/src/claim_stake_farm_rewards.rs 95.74% 97.87% 80.00% 26.47%
/farm-staking/farm-staking/src/compound_stake_farm_rewards.rs 94.44% 97.22% 50.00% 23.08%
/farm-staking/farm-staking/src/custom_rewards.rs 50.88% 51.69% 41.67% 18.06%
/farm-staking/farm-staking/src/external_interaction.rs 98.21% 99.21% 66.67% 11.76%
/farm-staking/farm-staking/src/farm_token_roles.rs 0.00% 0.00% 0.00% 0.00%
/farm-staking/farm-staking/src/lib.rs 73.83% 81.45% 66.67% 19.64%
/farm-staking/farm-staking/src/stake_farm.rs 97.22% 98.91% 75.00% 35.71%
/farm-staking/farm-staking/src/token_attributes.rs 78.38% 76.19% 50.00% 42.31%
/farm-staking/farm-staking/src/unbond_farm.rs 94.74% 97.83% 50.00% 16.67%
/farm-staking/farm-staking/src/unstake_farm.rs 98.00% 99.11% 80.00% 35.29%
/farm-staking/farm-staking/tests/farm_staking_energy_test.rs 99.93% 99.74% 100.00% 100.00%
/farm-staking/farm-staking/tests/farm_staking_migration_test.rs 95.41% 96.83% 100.00% 100.00%
/farm-staking/farm-staking/tests/farm_staking_setup/mod.rs 100.00% 100.00% 100.00% 47.69%
/farm-staking/farm-staking/tests/farm_staking_test.rs 100.00% 100.00% 100.00% 100.00%
/legacy-contracts/factory-legacy/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/factory-legacy/src/attr_ex_helper.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/factory-legacy/src/cache.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/factory-legacy/src/events.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/factory-legacy/src/lib.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/factory-legacy/src/locked_asset.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/factory-legacy/src/locked_asset_token_merge.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/factory-legacy/src/migration.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/farm-staking-proxy-v13/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/farm-staking-proxy-v13/src/dual_yield_token.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/farm-staking-proxy-v13/src/external_contracts_interactions.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/farm-staking-proxy-v13/src/lib.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/farm-staking-proxy-v13/src/lp_farm_token.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/farm-v12/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/farm-v12/src/lib.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/farm-v13-custom-rewards/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/farm-v13-custom-rewards/src/lib.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/farm-v13-locked-rewards/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/farm-v13-locked-rewards/src/lib.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/farm-v13/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/farm-v13/src/lib.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/locked-asset-distribution/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/locked-asset-distribution/src/lib.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/metabonding-staking-legacy/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/metabonding-staking-legacy/src/lib.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/price-discovery-v1/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/price-discovery-v1/src/lib.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/price-discovery-v2/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/price-discovery-v2/src/lib.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/proxy-dex-legacy/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/proxy-dex-legacy/src/energy_update.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/proxy-dex-legacy/src/events.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/proxy-dex-legacy/src/lib.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/proxy-dex-legacy/src/proxy_common.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/proxy-dex-legacy/src/proxy_farm.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/proxy-dex-legacy/src/proxy_pair.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/proxy-dex-legacy/src/transfer_role.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/simple-lock-legacy/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/simple-lock-legacy/src/basic_lock_unlock.rs 92.31% 93.75% 75.00% 20.00%
/legacy-contracts/simple-lock-legacy/src/lib.rs 77.78% 84.21% 66.67% 18.18%
/legacy-contracts/simple-lock-legacy/src/locked_token.rs 0.00% 0.00% 0.00% 0.00%
/legacy-contracts/simple-lock-legacy/src/proxy_farm.rs 80.49% 85.71% 27.27% 8.57%
/legacy-contracts/simple-lock-legacy/src/proxy_lp.rs 82.14% 89.58% 28.57% 9.09%
/legacy-contracts/simple-lock-legacy/tests/rust_test.rs 100.00% 100.00% 100.00% 100.00%
/locked-asset/energy-factory/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/locked-asset/energy-factory/src/energy.rs 96.00% 96.57% 80.77% 31.42%
/locked-asset/energy-factory/src/events.rs 78.57% 81.25% 25.00% 21.79%
/locked-asset/energy-factory/src/extend_lock.rs 97.50% 98.85% 83.33% 17.86%
/locked-asset/energy-factory/src/lib.rs 99.08% 99.56% 87.50% 16.10%
/locked-asset/energy-factory/src/local_roles.rs 0.00% 0.00% 0.00% 0.00%
/locked-asset/energy-factory/src/lock_options.rs 80.00% 86.79% 44.44% 27.32%
/locked-asset/energy-factory/src/lock_options_endpoints.rs 89.13% 86.30% 75.00% 41.18%
/locked-asset/energy-factory/src/locked_token_transfer.rs 66.67% 72.73% 50.00% 5.56%
/locked-asset/energy-factory/src/migration.rs 73.64% 77.00% 60.00% 2.65%
/locked-asset/energy-factory/src/penalty.rs 96.77% 97.78% 50.00% 6.38%
/locked-asset/energy-factory/src/token_merging.rs 93.98% 96.50% 66.67% 11.18%
/locked-asset/energy-factory/src/token_whitelist.rs 75.00% 83.33% 50.00% 23.08%
/locked-asset/energy-factory/src/unlock_with_penalty.rs 97.87% 97.89% 83.33% 8.90%
/locked-asset/energy-factory/src/unlocked_token_transfer.rs 65.71% 70.97% 50.00% 7.14%
/locked-asset/energy-factory/src/unstake.rs 96.43% 98.18% 83.33% 9.09%
/locked-asset/energy-factory/src/virtual_lock.rs 96.43% 97.96% 66.67% 14.71%
/locked-asset/energy-factory/tests/energy_factory_setup/mod.rs 99.57% 98.40% 100.00% 41.00%
/locked-asset/energy-factory/tests/energy_factory_setup/unbond_sc_mock.rs 100.00% 100.00% 100.00% 50.00%
/locked-asset/energy-factory/tests/old_tokens_test.rs 100.00% 100.00% 100.00% 100.00%
/locked-asset/energy-factory/tests/simple_lock_energy_test.rs 100.00% 100.00% 100.00% 100.00%
/locked-asset/energy-factory/tests/token_merging_test.rs 100.00% 100.00% 100.00% 100.00%
/locked-asset/energy-factory/tests/virtual_lock_test.rs 100.00% 100.00% 100.00% 100.00%
/locked-asset/lkmex-transfer/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/locked-asset/lkmex-transfer/src/energy_transfer.rs 97.50% 98.67% 75.00% 27.27%
/locked-asset/lkmex-transfer/src/events.rs 91.30% 91.30% 60.00% 16.67%
/locked-asset/lkmex-transfer/src/lib.rs 79.21% 87.55% 37.50% 12.00%
/locked-asset/lkmex-transfer/tests/lkmex_transfer_tests.rs 100.00% 100.00% 100.00% 100.00%
/locked-asset/locked-token-wrapper/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/locked-asset/locked-token-wrapper/src/lib.rs 96.30% 98.21% 75.00% 20.00%
/locked-asset/locked-token-wrapper/src/wrapped_token.rs 42.00% 46.34% 20.00% 6.06%
/locked-asset/locked-token-wrapper/tests/locked_token_wrapping_test.rs 100.00% 100.00% 100.00% 100.00%
/locked-asset/proxy_dex/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/locked-asset/proxy_dex/src/energy_update.rs 73.17% 73.33% 80.00% 28.57%
/locked-asset/proxy_dex/src/events.rs 77.88% 78.91% 38.46% 11.11%
/locked-asset/proxy_dex/src/external_merging.rs 100.00% 100.00% 100.00% 41.67%
/locked-asset/proxy_dex/src/farm_interactions.rs 97.30% 97.96% 75.00% 15.79%
/locked-asset/proxy_dex/src/lib.rs 18.87% 23.46% 14.29% 6.67%
/locked-asset/proxy_dex/src/other_sc_whitelist.rs 35.29% 34.48% 28.57% 9.68%
/locked-asset/proxy_dex/src/pair_interactions.rs 97.62% 98.51% 66.67% 20.00%
/locked-asset/proxy_dex/src/proxy_common.rs 58.90% 55.65% 70.00% 23.08%
/locked-asset/proxy_dex/src/proxy_farm.rs 99.60% 99.78% 88.89% 18.18%
/locked-asset/proxy_dex/src/proxy_pair.rs 88.17% 89.55% 85.71% 24.32%
/locked-asset/proxy_dex/src/wrapped_farm_attributes.rs 88.12% 88.00% 55.56% 14.29%
/locked-asset/proxy_dex/src/wrapped_farm_token_merge.rs 95.92% 97.50% 75.00% 15.79%
/locked-asset/proxy_dex/src/wrapped_lp_attributes.rs 95.40% 96.00% 55.56% 19.44%
/locked-asset/proxy_dex/src/wrapped_lp_token_merge.rs 64.29% 67.69% 50.00% 9.52%
/locked-asset/proxy_dex/tests/proxy_dex_test_setup/mod.rs 99.18% 99.43% 95.00% 92.50%
/locked-asset/proxy_dex/tests/proxy_farm_test.rs 99.90% 99.92% 100.00% 100.00%
/locked-asset/proxy_dex/tests/proxy_lp_test.rs 100.00% 100.00% 100.00% 100.00%
/locked-asset/simple-lock/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/locked-asset/simple-lock/src/basic_lock_unlock.rs 98.11% 96.63% 83.33% 22.91%
/locked-asset/simple-lock/src/farm_interactions.rs 98.25% 98.88% 75.00% 10.00%
/locked-asset/simple-lock/src/lib.rs 84.62% 90.62% 75.00% 31.82%
/locked-asset/simple-lock/src/locked_token.rs 72.22% 74.29% 40.00% 2.08%
/locked-asset/simple-lock/src/lp_interactions.rs 93.48% 95.52% 66.67% 6.90%
/locked-asset/simple-lock/src/proxy_farm.rs 77.47% 82.47% 37.50% 6.29%
/locked-asset/simple-lock/src/proxy_lp.rs 78.53% 76.61% 53.33% 5.71%
/locked-asset/simple-lock/src/token_attributes.rs 91.67% 89.74% 33.33% 16.28%
/locked-asset/simple-lock/tests/rust_test.rs 100.00% 100.00% 100.00% 100.00%
/locked-asset/tests/distribution_scenario_go_test.rs 0.00% 0.00% 0.00% 0.00%
/locked-asset/token-unstake/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/locked-asset/token-unstake/src/cancel_unstake.rs 82.05% 83.75% 50.00% 14.29%
/locked-asset/token-unstake/src/events.rs 87.50% 91.67% 50.00% 50.00%
/locked-asset/token-unstake/src/fees_handler.rs 89.29% 91.92% 71.43% 44.00%
/locked-asset/token-unstake/src/lib.rs 90.00% 95.45% 50.00% 25.00%
/locked-asset/token-unstake/src/tokens_per_user.rs 0.00% 0.00% 0.00% 0.00%
/locked-asset/token-unstake/src/unbond_tokens.rs 97.92% 97.50% 66.67% 30.77%
/locked-asset/token-unstake/tests/token_unstake_setup/fees_collector_mock.rs 100.00% 100.00% 100.00% 100.00%
/locked-asset/token-unstake/tests/token_unstake_setup/mod.rs 93.17% 93.87% 86.36% 63.64%
/locked-asset/token-unstake/tests/token_unstake_test.rs 100.00% 100.00% 100.00% 100.00%
/locked-asset/token-unstake/tests/unlock_early_test.rs 100.00% 100.00% 100.00% 100.00%
/pause-all/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/pause-all/src/lib.rs 64.18% 67.83% 63.64% 24.14%
/pause-all/src/ongoing_pause_operation.rs 53.33% 60.87% 40.00% 16.67%
/pause-all/tests/pause_all_test.rs 100.00% 100.00% 100.00% 100.00%

@github-actions
Copy link

github-actions bot commented Nov 27, 2025

Contract comparison - from efb6aa7 to 5a64ebe

Path                                                                                             size                  has-allocator                     has-format
farm-staking.wasm 44969 ➡️ 42045 🟢 (-2924) false without message
farm-staking-proxy.wasm 21790 ➡️ 21006 🟢 (-784) false without message
pause-all.wasm 5873 ➡️ 4485 🟢 (-1388) false without message ➡️ None
proxy_dex.wasm 36804 ➡️ 35860 🟢 (-944) false without message
energy-factory.wasm 35426 ➡️ 35068 🟢 (-358) false without message
lkmex-transfer.wasm 10968 ➡️ 10086 🟢 (-882) false without message ➡️ None
simple-lock.wasm 25643 ➡️ 25202 🟢 (-441) false without message
token-unstake.wasm 14130 ➡️ 13674 🟢 (-456) false without message ➡️ None
locked-token-wrapper.wasm 15151 ➡️ 14589 🟢 (-562) false without message
router.wasm 27441 ➡️ 27300 🟢 (-141) false without message
price-discovery.wasm 16609 ➡️ 15621 🟢 (-988) false without message
proxy-deployer.wasm 4047 ➡️ 3735 🟢 (-312) false none ➡️ None
farm.wasm 40882 ➡️ 39190 🟢 (-1692) false without message
governance.wasm 16665 ➡️ 15968 🟢 (-697) false without message ➡️ None
pair-mock.wasm 4387 ➡️ 5225 🔴 (+838) false without message
farm-with-locked-rewards.wasm 40532 ➡️ 38866 🟢 (-1666) false without message
permissions-hub.wasm 3291 ➡️ 3041 🟢 (-250) false none ➡️ None
pair.wasm 33000 ➡️ 33335 🔴 (+335) false without message
safe-price-view.wasm 9329 ➡️ 9699 🔴 (+370) false without message
pair-full.wasm 34963 ➡️ 35258 🔴 (+295) false without message
factory-legacy.wasm 18446 ➡️ 18089 🟢 (-357) false without message
farm-v12.wasm 2235 ➡️ 2239 🔴 (+4) false none ➡️ None
locked-asset-distribution.wasm 6007 ➡️ 5998 🟢 (-9) false without message ➡️ None
farm-v13.wasm 6195 ➡️ 5905 🟢 (-290) false without message ➡️ None
farm-staking-proxy-v13.wasm 10102 ➡️ 10251 🔴 (+149) false without message ➡️ None
farm-v13-custom-rewards.wasm 3732 ➡️ 3200 🟢 (-532) false without message ➡️ None
proxy-dex-legacy.wasm 18767 ➡️ 19481 🔴 (+714) false without message ➡️ None
price-discovery-v1.wasm 3064 ➡️ 3484 🔴 (+420) false none ➡️ None
price-discovery-v2.wasm 3475 ➡️ 3755 🔴 (+280) false none ➡️ None
metabonding-staking-legacy.wasm 2126 ➡️ 2242 🔴 (+116) false none ➡️ None
farm-v13-locked-rewards.wasm 6150 ➡️ 5860 🟢 (-290) false without message ➡️ None
simple-lock-legacy.wasm 6616 ➡️ 6164 🟢 (-452) false without message ➡️ None
energy-update.wasm 1571 ➡️ 1347 🟢 (-224) false none ➡️ None
fees-collector.wasm 21652 ➡️ 20759 🟢 (-893) false without message ➡️ None
energy-factory-mock.wasm 4696 ➡️ 3987 🟢 (-709) false without message ➡️ None
governance-v2.wasm 16308 ➡️ 16645 🔴 (+337) false without message ➡️ None

@psorinionut psorinionut changed the base branch from main to rc/supernova-updates December 1, 2025 23:53

pub const MAX_PERCENT: u64 = 10_000;
pub const BLOCKS_IN_YEAR: u64 = 31_536_000 / 6; // seconds_in_year / 6_seconds_per_block
pub const SECONDS_IN_YEAR: u64 = 31_536_000;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DurationSeconds instead of u64

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

Comment on lines -36 to +37
.execute_on_dest_context()
.returns(ReturnsResult)
.sync_call()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this even changed? First step towards disaster imo :/

Comment on lines +110 to +114
self.tx()
.to(action.dest_address.clone())
.raw_call(action.endpoint_name.clone())
.arguments_raw(ManagedArgBuffer::from(action.arguments.clone()))
.gas(action.gas_limit)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:/

Comment on lines 87 to 95

let first_payment_after = output_payments.get(0);
let second_payment_after = output_payments.get(1);
require!(
first_payment_after.amount >= remove_liq_context.first_token_amount_min,
output_payments.get(0).amount >= remove_liq_context.first_token_amount_min,
ERROR_SLIPPAGE_ON_REMOVE
);
require!(
second_payment_after.amount >= remove_liq_context.second_token_amount_min,
output_payments.get(1).amount >= remove_liq_context.second_token_amount_min,
ERROR_SLIPPAGE_ON_REMOVE
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary change? The code was a bit clearer before.

}

let farming_token_payment = payments.get(0);
let farming_token_payment = payments.get(0).clone();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

payments.take(0), there's a remove 4 lines down

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

///

const MIN_VOTING_DELAY: u64 = 1;
const MAX_VOTING_DELAY: u64 = 100_800; // 1 Week
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DurationSeconds

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.


const MIN_VOTING_DELAY: u64 = 1;
const MAX_VOTING_DELAY: u64 = 100_800; // 1 Week
const MIN_VOTING_PERIOD: u64 = 14_400; // 24 Hours
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DurationSeconds

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

self.accumulated_fees(current_week, &payment_after_burn.token_identifier)
.update(|amt| *amt += &payment_after_burn.amount);

self.emit_deposit_swap_fees_event(&caller, current_week, &payment_after_burn);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need this in here with the return? Can't we have the old version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted. Cloned the payment.

@psorinionut psorinionut merged commit 818456a into rc/supernova-updates Jan 20, 2026
7 checks passed
@psorinionut psorinionut deleted the framework-upgrade-0.63 branch January 20, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants