Skip to content

Commit e90aa0c

Browse files
Updated command to unstake difference
1 parent ca7d7b0 commit e90aa0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stakingSeatBot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ then
186186
NEW_STAKE_FORMATTED=`printf "%d%024d\n", $NEW_STAKE_WITH_BUFFER`
187187
echo "New Stake Formatted: ${NEW_STAKE_FORMATTED:0:24}"
188188
#STAKE_CMD="near stake "$POOL_ID" "$PUBLIC_KEY" "${SEAT_PRICE_PROPOSALS}" --accountId "$ACCOUNT_ID""
189-
STAKE_CMD="near call "$POOL_ID" stake '{\"amount\":"\"${SEAT_PRICE_PROPOSALS}\""}' --accountId "$ACCOUNT_ID""
189+
STAKE_CMD="near call "$POOL_ID" unstake '{\"amount\":"\"${SEAT_PRICE_DIFF}\""}' --accountId "$ACCOUNT_ID""
190190
echo "Stake CMD: $STAKE_CMD"
191191
STAKE=`$STAKE_CMD`
192192
echo "Stake updated $STAKE"

0 commit comments

Comments
 (0)