[SMRT] Base VRF v2.5 subscription cannot be cancelled after the consumer already finished

Abierto
#24,123 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
1-2 días
Aptitud para principiantes
12/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go, solidity
Área
blockchain

Línea de trabajo

The requested fix is an on-chain admin action, not a code change: the coordinator owner must call ownerCancelSubscription on the coordinator at 0xd5D517aBE5cF79B7e95eC98dB0f0277788aFF634 for the given subscription id. Read pendingRequestExists, cancelSubscription, and removeConsumer in the VRF v2.5 coordinator, and check how pendingReqCount and s_requestCommitments are tracked. Done means the subscription balance is returned to the owner and the coordinator reports no pending request. A newcomer cannot complete this without coordinator-owner access.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Description

A VRF v2.5 subscription on Base cannot be cancelled or have its consumer removed. The consuming contract already completed the request and minted the NFT. The coordinator still has pendingRequestExists == true because fulfillRandomWords was never called on it, so pendingReqCount was never decremented. cancelSubscription and removeConsumer both revert with PendingRequestExists() (0xb42f66e8). The coordinator is not a proxy, so the owner of the subscription has no function that can clear the flag. ownerCancelSubscription can, and only the coordinator owner can call it.

This is the same lock as #12446, which was closed with "sorted out with the help of the chainlink team," and #23279, which is still open and asks for a user-callable timeout. Please cancel this subscription, and please add a subscription-owner timeout for requests the oracle has already dropped.

Basic Information

  • Network: Base mainnet, chain id 8453
  • Coordinator: 0xd5D517aBE5cF79B7e95eC98dB0f0277788aFF634 (VRFCoordinatorV2_5_Optimism, verified, not a proxy, not upgradeable)
  • Coordinator owner: 0xcEf2893e396d530bdECB1F1467e69F7B994eC5Ad (Safe 1.3.0, threshold 4)
  • LINK: 0x88Fb150BDc53A65fe94Dea0c9BA0a6dAf8C6e196
  • Blockhash store: 0x78b69899C8cD252126cBB1A50171ec37286C3877
  • Subscription id: 78271368823521773731966805894177547313492433793311695796634120971644672709750
  • Subscription owner: 0xFBb403Def650925Df02BCb71eaB93512b44f60df (EOA)
  • Consumer: 0x536fDf3027ae6F34499B4452aFbD9E1B872f6Bd2 (Agent Bounty Plates, ERC-721 PLATE)
  • Balance still in the subscription: 1 LINK and 0.001 ETH
  • getSubscription reqCount: 0
  • UI: https://vrf.chain.link/base#/side-drawer/subscription/base/78271368823521773731966805894177547313492433793311695796634120971644672709750
  • UI status for the row: "Failed: Pending for over 24 hours". Fulfillments shown: 0. Consumer total spent: 0 LINK, 0 ETH. Max gas price column: 30 gwei.

Request that is still open on the coordinator:

  • Request id: 26557430773480077820545383181341549057345614613479920506861248445214932282046
  • Request id hex: 0x3ab6f91fb6e7f8335ac4d00f930dc7e49b5022d3a46d1d18d414c1d741c32abe
  • Claim tx: 0x92467b2beba623d587655057941700ca28b10a720054836333a6b8f1393d1282
  • Block: 46511361 (26 May 2026, 16:14 UTC)
  • Key hash: 0xdc2f87677b01473c763cb0aee938ed3341512f6057324a584e5944e786144d70 (Base 30 gwei lane)
  • Callback gas limit: 500000
  • Num words: 1
  • Confirmations: 3
  • Payment asset: LINK
  • s_requestCommitments(requestId) is still 0xd75414a20f2d727d8caee33d56d68627b7fbafa22c9c6fa8187c1e0b1f95302f
  • Blockhash for 46511361 is stored. getBlockhash on the blockhash store returns 0xa5e44313cd2ecafb58dbc0b403647f550097a7d4e17433c1617159d0573a2e2a
  • No RandomWordsFulfilled was emitted for this request id

Consumer state, which is already finished:

  • Recipient 0x66cb54f4412cdbf8bd0dad18abe09f1444cfa5ca has balanceOf 1
  • AgentBountyPlates.pendingRequests() is 0
  • AgentBountyPlates.vrfCoordinator() is the real coordinator again
  • The plate was completed through the consumer's own fulfillment path. That path does not call fulfillRandomWords on the coordinator, so it does not decrement pendingReqCount and does not delete s_requestCommitments

Steps to Reproduce

  1. Read pendingRequestExists(78271368823521773731966805894177547313492433793311695796634120971644672709750) on the coordinator. It returns true.
  2. From the subscription owner, call cancelSubscription(subId, 0xFBb403Def650925Df02BCb71eaB93512b44f60df). The node reverts with PendingRequestExists().
  3. From the subscription owner, call removeConsumer(subId, 0x536fDf3027ae6F34499B4452aFbD9E1B872f6Bd2). Same revert, 0xb42f66e8.
  4. migrate reverts on the same check.
  5. The Subscription Manager shows the request as failed after 24 hours. That label is not enforced in VRFCoordinatorV2_5. The 24-hour mark does not clear pendingReqCount.

Additional Information

pendingReqCount is incremented in requestRandomWords and decremented only in fulfillRandomWords (the change from #12425). A reverting consumer callback would still clear it, because the coordinator deletes the commitment and decrements the counter around the callback. The oracle never submitted that fulfillment. The request is past the 24-hour window the UI and the node use, so the oracle has dropped it. The subscription owner cannot produce a VRF proof.

Chainlink Functions exposes timeoutRequests to the subscription owner after a short delay. This coordinator does not. The only function that pays the balance out while a request is still marked pending is ownerCancelSubscription(uint256), and it is onlyOwner.

Please execute, from 0xcEf2893e396d530bdECB1F1467e69F7B994eC5Ad:

ownerCancelSubscription(78271368823521773731966805894177547313492433793311695796634120971644672709750)

on 0xd5D517aBE5cF79B7e95eC98dB0f0277788aFF634. That sends the remaining 1 LINK and 0.001 ETH to 0xFBb403Def650925Df02BCb71eaB93512b44f60df.

I can sign a message from that owner address if you need proof of control. Contact: [email protected]. GitHub: avalidurl.

Lenguaje dominante
Go
Estrellas
8.3k
Forks
2k
Merge medio
1 d 17 h
PR fusionados (30 d)
120

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de smartcontractkit/chainlink

Todos los issues de smartcontractkit/chainlink

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.