@bananapus/omnichain-deployers-v6 0.0.44 → 0.0.45
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/package.json
CHANGED
|
@@ -18,11 +18,10 @@ library DeployersDeploymentLib {
|
|
|
18
18
|
Vm internal constant vm = Vm(VM_ADDRESS);
|
|
19
19
|
|
|
20
20
|
function getDeployment(string memory path) internal returns (DeployersDeployment memory deployment) {
|
|
21
|
-
//
|
|
21
|
+
// Match the current chain ID to the Sphinx network name used in deployment artifacts.
|
|
22
22
|
uint256 chainId = block.chainid;
|
|
23
23
|
|
|
24
|
-
//
|
|
25
|
-
// TODO: get constants without deploy.
|
|
24
|
+
// `SphinxConstants` exposes Sphinx's supported chain ID to network name mapping.
|
|
26
25
|
SphinxConstants sphinxConstants = new SphinxConstants();
|
|
27
26
|
NetworkInfo[] memory networks = sphinxConstants.getNetworkInfoArray();
|
|
28
27
|
|
|
@@ -597,7 +597,7 @@ contract JBOmnichainDeployer is
|
|
|
597
597
|
// doesn't over-mint tokens relative to the funds actually entering the project.
|
|
598
598
|
// When issueTokensForSplits is true, tiered721Weight == context.weight and the ratio is 1x.
|
|
599
599
|
if (has721Hook && context.weight > 0 && tiered721Weight != context.weight) {
|
|
600
|
-
weight = mulDiv(weight, tiered721Weight, context.weight);
|
|
600
|
+
weight = mulDiv({x: weight, y: tiered721Weight, denominator: context.weight});
|
|
601
601
|
}
|
|
602
602
|
|
|
603
603
|
// When the extra hook returns weight=0 (e.g. buyback found no profitable swap) but tier
|