Skip to content

Improve calculation of estimatePaymentAmountInETH() in requestRandomness() #51

@kafeikui

Description

@kafeikui

In estimatePaymentAmountInETH() gasExceptCallback is influenced by not only groupSize but RandomnessRequestParams.

Like when RequestType is RandomWords, the numWords will decide how many instructions are executed when building randomWords in _fulfillCallback(). Similarly, we should consider gasExceptCallback with upper when RequestType is Shuffling.

This is different from callbackGasLimit which should be calculated and passed by consumer contract. Adapter should handle this in requestRandomness().

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

Status
No status

Relationships

None yet

Development

No branches or pull requests

Issue actions