Doubt on boosting

Hello
still something not clear about boosting. I can preboost proposals easily. It is not clear when proposal become boosted. I’ve managed to have a proposal boosted with these steps:

{
  "data": {
    "proposal": {
      "boostedAt": "1576011360",
      "closingAt": "1576012419",
      "createdAt": "1576009869",
      "id": "0xa6e5bd9f4607a4dc40ac88a20a33692fff899a3638e14ec556ec0e521f418532",
      "preBoostedAt": "1576010103",
      "proposer": "0xaca94ef8bd5ffee41947b4585a84bda5a3d3da6e",
      "stakes": [
        {
          "createdAt": "1576010030",
          "staker": "0x1df62f291b2e969fb0849d99d9ce41e2f137006e"
        },
        {
          "createdAt": "1576010103",
          "staker": "0xd03ea8624c8c5987235048901fb614fdca89b117"
        }
      ],
      "votes": [
        {
          "createdAt": "1576011360",
          "voter": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1"
        },
        {
          "createdAt": "1576012419",
          "voter": "0x22d491bde2303f2f43325b2108d26f1eaba1e32b"
        }
      ]
    }
  }
}

but i’m not able to boost proposal anymore. Same steps bring me to a preboosted proposal (not boosted) also in a newly created DAO. What’s wrong? Missing something?
Thanks

Dniele

{
  "data": {
    "proposal": {
      "boostedAt": null,
      "closingAt": "1576037382",
      "createdAt": "1576036406",
      "id": "0x12028c45723d895ea018bf353c5012b2a61306f1b15dce72982660dcb0b138cf",
      "preBoostedAt": "1576036482",
      "proposer": "0xaca94ef8bd5ffee41947b4585a84bda5a3d3da6e",
      "stakes": [
        {
          "createdAt": "1576036482",
          "staker": "0xd03ea8624c8c5987235048901fb614fdca89b117"
        },
        {
          "createdAt": "1576036436",
          "staker": "0x1df62f291b2e969fb0849d99d9ce41e2f137006e"
        }
      ],
      "votes": [
        {
          "createdAt": "1576036675",
          "voter": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1"
        }
      ]
    }
  }
}

Hi Daniele!

So there are couple things, in DAOspec.json did you edit the “preBoostedVotePeriodLimit”?
As described in DAO params list the time it will take for the proposal to get from pre-boosted to boosted is described here.

Secondly, since subgraph data is updated based on blockchain events, even after the preBoostedVotePeriodLimit elapse the subgraph data is not updated unless there is an activity on proposal. This activity could be - vote, stake or execute method run on this proposal.

So it is possible that the second vote in the first case was after the time elapsed for preBoosted period and that updated the subgraph.

You can handle this in UI by either just displaying the proposal in boosted queue after enough time has passed in preBoosted state or you manual action on blockchain to execute the proposal which will update the state in subgraph.

Hi!
preBoostedVotePeriodLimit is set to 1 hour. Problem is that as soon as proposal become preBoosted, also closingAt value is set to preBoosted time + 1 hour. After preBoost, I always do something (tipically a vote). It seems that proposal never reaches boost status because it closes exactly when it should become Boosted.

Thanks