Skip to content

Commit b6d1690

Browse files
committed
Add DssVestTransferrable deployment for MKR coming from treasury
1 parent 92af12d commit b6d1690

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

bin/auth-checker

+2
Original file line numberDiff line numberDiff line change
@@ -366,3 +366,5 @@ checkRely "MCD_VEST_DAI" "DEPLOYER" "NOT_AUTHED"
366366
checkRely "MCD_VEST_DAI" "MCD_PAUSE_PROXY" "AUTHED"
367367
checkRely "MCD_VEST_MKR" "DEPLOYER" "NOT_AUTHED"
368368
checkRely "MCD_VEST_MKR" "MCD_PAUSE_PROXY" "AUTHED"
369+
checkRely "MCD_VEST_MKR_TREASURY" "DEPLOYER" "NOT_AUTHED"
370+
checkRely "MCD_VEST_MKR_TREASURY" "MCD_PAUSE_PROXY" "AUTHED"

libexec/base-deploy

+4
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,9 @@ if [[ "$newGovToken" == true ]]; then
333333
calldata="$(seth calldata 'rely(address,address,address,address)' "$MCD_PAUSE" "$MCD_GOV_ACTIONS" "$GOV_GUARD" "$MCD_VEST_MKR")"
334334
sethSend "$PROXY_DEPLOYER" 'execute(address,bytes memory)' "$PROXY_PAUSE_ACTIONS" "$calldata"
335335
fi
336+
MCD_VEST_MKR_TREASURY=$(dappCreate dss-vest-optimized DssVestTransferrable "$MCD_PAUSE_PROXY" "$MCD_GOV")
337+
sethSend "$MCD_VEST_MKR_TREASURY" 'rely(address)' "$MCD_PAUSE_PROXY"
338+
sethSend "$MCD_VEST_MKR_TREASURY" 'deny(address)' "$ETH_FROM"
336339

337340
# Generate addresses.json file
338341
# shellcheck disable=SC2153
@@ -378,6 +381,7 @@ cat > "$OUT_DIR"/addresses.json <<EOF
378381
"MCD_FLASH": "$MCD_FLASH",
379382
"MCD_VEST_DAI": "$MCD_VEST_DAI",
380383
"MCD_VEST_MKR": "$MCD_VEST_MKR",
384+
"MCD_VEST_MKR_TREASURY": "$MCD_VEST_MKR_TREASURY",
381385
"PROXY_FACTORY": "$(seth --to-checksum-address "$PROXY_FACTORY")",
382386
"PROXY_REGISTRY": "$(seth --to-checksum-address "$PROXY_REGISTRY")"$ILKS_VARS,
383387
"PROXY_PAUSE_ACTIONS": "$PROXY_PAUSE_ACTIONS",

0 commit comments

Comments
 (0)