Skip to content

Commit cc53b7f

Browse files
committed
jobs: add pool margin parameterization on pool creation
1 parent 464deb8 commit cc53b7f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

flakeModules/jobs.nix

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,6 +1069,7 @@ in {
10691069
# [$FEE]
10701070
# [$NO_DEPLOY_DIR]
10711071
# $PAYMENT_KEY
1072+
# [$POOL_MARGIN]
10721073
# [$POOL_METADATA_BASE_URL]
10731074
# [$POOL_METADATA_URL]
10741075
# $POOL_NAMES
@@ -1098,6 +1099,11 @@ in {
10981099
FEE="300000"
10991100
fi
11001101
1102+
if [ -z "''${POOL_MARGIN:-}" ]; then
1103+
echo "Pool margin is defaulting to 1"
1104+
POOL_MARGIN="1"
1105+
fi
1106+
11011107
if [ -z "''${POOL_NAMES:-}" ]; then
11021108
echo "Pool names must be provided as a space delimited string via POOL_NAMES env var"
11031109
exit 1
@@ -1181,7 +1187,7 @@ in {
11811187
--testnet-magic "$TESTNET_MAGIC" \
11821188
--cold-verification-key-file "$(decrypt_check "$NO_DEPLOY_FILE"-cold.vkey)" \
11831189
--pool-cost 500000000 \
1184-
--pool-margin 1 \
1190+
--pool-margin "$POOL_MARGIN" \
11851191
--pool-owner-stake-verification-key-file "$(decrypt_check "$NO_DEPLOY_FILE"-owner-stake.vkey)" \
11861192
--pool-pledge "$POOL_PLEDGE" \
11871193
--single-host-pool-relay "$POOL_RELAY" \
@@ -1200,7 +1206,7 @@ in {
12001206
--testnet-magic "$TESTNET_MAGIC" \
12011207
--cold-verification-key-file "$(decrypt_check "$NO_DEPLOY_FILE"-cold.vkey)" \
12021208
--pool-cost 500000000 \
1203-
--pool-margin 1 \
1209+
--pool-margin "$POOL_MARGIN" \
12041210
--pool-owner-stake-verification-key-file "$(decrypt_check "$NO_DEPLOY_FILE"-owner-stake.vkey)" \
12051211
--pool-pledge "$POOL_PLEDGE" \
12061212
--single-host-pool-relay "$POOL_RELAY" \

0 commit comments

Comments
 (0)