Skip to content

Commit

Permalink
Add DssVestTransferrable deployment for MKR coming from treasury
Browse files Browse the repository at this point in the history
  • Loading branch information
gbalabasquer committed Oct 13, 2021
1 parent 92af12d commit b6d1690
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/auth-checker
Original file line number Diff line number Diff line change
Expand Up @@ -366,3 +366,5 @@ checkRely "MCD_VEST_DAI" "DEPLOYER" "NOT_AUTHED"
checkRely "MCD_VEST_DAI" "MCD_PAUSE_PROXY" "AUTHED"
checkRely "MCD_VEST_MKR" "DEPLOYER" "NOT_AUTHED"
checkRely "MCD_VEST_MKR" "MCD_PAUSE_PROXY" "AUTHED"
checkRely "MCD_VEST_MKR_TREASURY" "DEPLOYER" "NOT_AUTHED"
checkRely "MCD_VEST_MKR_TREASURY" "MCD_PAUSE_PROXY" "AUTHED"
4 changes: 4 additions & 0 deletions libexec/base-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ if [[ "$newGovToken" == true ]]; then
calldata="$(seth calldata 'rely(address,address,address,address)' "$MCD_PAUSE" "$MCD_GOV_ACTIONS" "$GOV_GUARD" "$MCD_VEST_MKR")"
sethSend "$PROXY_DEPLOYER" 'execute(address,bytes memory)' "$PROXY_PAUSE_ACTIONS" "$calldata"
fi
MCD_VEST_MKR_TREASURY=$(dappCreate dss-vest-optimized DssVestTransferrable "$MCD_PAUSE_PROXY" "$MCD_GOV")
sethSend "$MCD_VEST_MKR_TREASURY" 'rely(address)' "$MCD_PAUSE_PROXY"
sethSend "$MCD_VEST_MKR_TREASURY" 'deny(address)' "$ETH_FROM"

# Generate addresses.json file
# shellcheck disable=SC2153
Expand Down Expand Up @@ -378,6 +381,7 @@ cat > "$OUT_DIR"/addresses.json <<EOF
"MCD_FLASH": "$MCD_FLASH",
"MCD_VEST_DAI": "$MCD_VEST_DAI",
"MCD_VEST_MKR": "$MCD_VEST_MKR",
"MCD_VEST_MKR_TREASURY": "$MCD_VEST_MKR_TREASURY",
"PROXY_FACTORY": "$(seth --to-checksum-address "$PROXY_FACTORY")",
"PROXY_REGISTRY": "$(seth --to-checksum-address "$PROXY_REGISTRY")"$ILKS_VARS,
"PROXY_PAUSE_ACTIONS": "$PROXY_PAUSE_ACTIONS",
Expand Down

0 comments on commit b6d1690

Please sign in to comment.