Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into sparrowDom/balancer…
Browse files Browse the repository at this point in the history
…-composable-st-pool
  • Loading branch information
sparrowDom committed Dec 6, 2023
2 parents 2e00076 + a677d87 commit bbc2160
Show file tree
Hide file tree
Showing 15 changed files with 2,739 additions and 429 deletions.
48 changes: 35 additions & 13 deletions brownie/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def load_contract(name, address):
vault_value_checker = load_contract('vault_value_checker', VAULT_VALUE_CHECKER)
oeth_vault_value_checker = load_contract('vault_value_checker', OETH_VAULT_VALUE_CHECKER)
dripper = load_contract('dripper', DRIPPER)
oeth_dripper = load_contract('dripper', OETH_DRIPPER)
harvester = load_contract('harvester', HARVESTER)
ousd_usdt = load_contract('ousd_usdt', OUSD_USDT)
v2router = load_contract('v2router', UNISWAP_V2_ROUTER)
Expand Down Expand Up @@ -415,19 +416,40 @@ def nice_contract_address(address):


def show_governance_action(i, to, sig, data):
print("{}) {}".format(i+1, nice_contract_address(to)))
print(" "+ORANGE+sig+ENDC)
# print("Post Sig Data: ", data)
if re.match(".*\(\)", sig):
return
stypes = re.split(",|\)|\(", sig)[1:-1]
decodes = abi.decode_abi(stypes, data)
for j in range(0, len(stypes)):
v = decodes[j]
if stypes[j] == "address":
print(" >> ", nice_contract_address(v))
else:
print(" >> ", ORANGE+str(v)+ENDC)
print("{}) {}".format(i+1, nice_contract_address(to)))
print(" "+ORANGE+sig+ENDC)
# print("Post Sig Data: ", data)
if re.match(".*\(\)", sig):
return

split_sig = re.split("^[^\(]*", sig)[1]
split_sig = re.split(",|\)$|^\(", split_sig)[1:-1]

stypes = []
nested_struct = []
nested = False
for s in split_sig:
if s.startswith("("):
stypes.append([s[1:]])
nested = True
elif s.endswith(")"):
stypes[len(stypes) - 1].append(s[:-1])
stypes[len(stypes) - 1] = "({})".format(",".join(stypes[len(stypes) - 1]))
nested = False
elif nested:
stypes[len(stypes) - 1].append(s)
else:
stypes.append(s)

decodes = abi.decode_abi(stypes, data)
for j in range(0, len(stypes)):
v = decodes[j]
if stypes[j] == "address":
print(" >> ", nice_contract_address(v))
elif stypes[j] == "bytes":
print(" >> ", v.hex())
else:
print(" >> ", ORANGE+str(v)+ENDC)

def to_gnosis_json(txs):
main = {
Expand Down
16 changes: 15 additions & 1 deletion contracts/deploy/081_upgrade_harvester.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ module.exports = deploymentWithGovernanceProposal(
forceDeploy: false,
// forceSkip: true,
reduceQueueTime: true,
deployerIsProposer: true,
deployerIsProposer: false,
executeGasLimit: 30000000,
proposalId:
"70744121595007528818249644545963691097758184661168820806929451960448344720141",
},
async ({ deployWithConfirmation, ethers, getTxOpts }) => {
const { timelockAddr } = await getNamedAccounts();
Expand All @@ -40,6 +42,12 @@ module.exports = deploymentWithGovernanceProposal(
cOETHHarvesterProxy.address
);

const cOETHDripperProxy = await ethers.getContract("OETHDripperProxy");
const cOETHDripper = await ethers.getContractAt(
"OETHDripper",
cOETHDripperProxy.address
);

// Deployer Actions
// ----------------

Expand Down Expand Up @@ -309,6 +317,12 @@ module.exports = deploymentWithGovernanceProposal(
),
],
},
// 12. Change Drip duration to 14 days for OETH Dripper
{
contract: cOETHDripper,
signature: "setDripDuration(uint256)",
args: [14 * 24 * 60 * 60], // 14 days
},
],
};
}
Expand Down
3 changes: 2 additions & 1 deletion contracts/deployments/mainnet/.migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@
"074_upgrade_oeth_oracle_router": 1693458035,
"075_oeth_amo_upgrade": 1694089115,
"077_balancer_rETH_WETH": 1695843949,
"080_upgrade_buyback": 1698732191
"080_upgrade_buyback": 1698732191,
"081_upgrade_harvester": 1701171179
}
Loading

0 comments on commit bbc2160

Please sign in to comment.