Skip to content

Commit 226240b

Browse files
authored
Don't use expired proxy assignments (#949)
1 parent b5fe956 commit 226240b

File tree

1 file changed

+1
-1
lines changed
  • packages/helium-vote-service/src

1 file changed

+1
-1
lines changed

packages/helium-vote-service/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ server.post<{
533533
vm.registrar = '${HNT_REGISTRAR.toBase58()}' AND vm.proposal = '${proposal.toBase58()}'
534534
)
535535
LEFT OUTER JOIN delegated_positions dp ON dp.mint = pa.asset
536-
WHERE pa.proxy_config = '${HELIUM_PROXY_CONFIG.toBase58()}' AND pa.voter = '${wallet.toBase58()}' AND pa.index > 0 AND (
536+
WHERE pa.proxy_config = '${HELIUM_PROXY_CONFIG.toBase58()}' AND pa.voter = '${wallet.toBase58()}' AND pa.index > 0 AND pa.expiration_time > FLOOR(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP)) AND (
537537
vm is NULL
538538
OR (
539539
vm.proxy_index >= pa.index AND

0 commit comments

Comments
 (0)