Skip to content

Commit

Permalink
deploy on polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
dvpublic committed Apr 8, 2024
1 parent 791918f commit ae86fca
Show file tree
Hide file tree
Showing 11 changed files with 2,240 additions and 1,813 deletions.
44 changes: 22 additions & 22 deletions deployments/matic/BorrowLib.json

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions deployments/matic/ConverterStrategyBaseLib.json

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions deployments/matic/PairBasedStrategyLib.json

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions deployments/matic/PairBasedStrategyLogicLib.json

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions deployments/matic/PairBasedStrategyReader.json

Large diffs are not rendered by default.

124 changes: 62 additions & 62 deletions deployments/matic/UniswapV3ConverterStrategy.json

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions deployments/matic/UniswapV3ConverterStrategyLogicLib.json

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions deployments/matic/UniswapV3DebtLib.json

Large diffs are not rendered by default.

3,597 changes: 2,010 additions & 1,587 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"ethereumjs-tx": "^2.1.2",
"ethers": "5.7.2",
"graphql": "^16.6.0",
"hardhat": "2.14.1",
"hardhat": "2.22.2",
"hardhat-abi-exporter": "^2.10.1",
"hardhat-change-network": "^0.0.7",
"hardhat-contract-sizer": "^2.8.0",
Expand Down
12 changes: 8 additions & 4 deletions scripts/utils/tx-params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type OWLRACLE_RESPONSE = {

export async function txParamsBasic(provider: providers.Provider, hre: HardhatRuntimeEnvironment, acceptance = 2) {
const feeData = await provider.getFeeData();

// console.log("feeData", feeData);

console.log('maxPriorityFeePerGas', formatUnits(feeData.maxPriorityFeePerGas?.toString() ?? '0', 9));
console.log('maxFeePerGas', formatUnits(feeData.maxFeePerGas?.toString() ?? '0', 9));
Expand Down Expand Up @@ -54,10 +54,14 @@ export async function txParamsBasic(provider: providers.Provider, hre: HardhatRu
maxFeesPerNetwork(hre),
);
const maxFeePerGas = (feeData.maxFeePerGas?.toNumber() ?? 1) * 2;
return {
maxPriorityFeePerGas: maxPriorityFeePerGas.toFixed(0),
maxFeePerGas: maxFeePerGas.toFixed(0),
const ret = {
maxPriorityFeePerGas: (1.2*feeData.maxPriorityFeePerGas.toNumber()).toFixed(0),
maxFeePerGas: (1.2*maxFeePerGas).toFixed(0),
// gasPrice: ((feeData.gasPrice?.toNumber() ?? 1) * 1.2).toFixed(0)
};
// console.log("ret", ret);
// console.log("maxFeesPerNetwork(hre)", maxFeesPerNetwork(hre))
return ret;
} else {
return {
gasPrice: ((feeData.gasPrice?.toNumber() ?? 1) * 1.2).toFixed(0),
Expand Down

0 comments on commit ae86fca

Please sign in to comment.