This is necessary for the token-reverting functionality. If at any time no more tokens are possible, we need to remove the last token and select a different one from the previous iteration. I propose to do this by keeping track of a map like the following:
As illustrated, this map keeps the relation between partial oracles at any iteration (keys) and possible next tokens with their confidence score, in order (values).
This is necessary for the token-reverting functionality. If at any time no more tokens are possible, we need to remove the last token and select a different one from the previous iteration. I propose to do this by keeping track of a map like the following:
As illustrated, this map keeps the relation between partial oracles at any iteration (keys) and possible next tokens with their confidence score, in order (values).