You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a follow Oracle methods available for a user:
- `Oracle(_ provider: web3, blocksNumber: BigUInt = 20, transactionsNumber: BigUInt = 50)` to init object instance.
- `predictBaseFee(_ statistic: Statistic) -> BigUInt?` to predict base fee according to given statistic.
- `predictTip(_ statistic: Statistic) -> BigUInt?` to predict tip fee according to given statistic.
- `predictBothFees(baseFee: Statistic, tip: Statistic) -> (BigUInt, BigUInt)?` to predict both fees according to given statistic
All of the methods above returns nil if fails to predict.
There's follow modes (statistics) are available yet:
- `Statistic.minimum` — comes with minimum valid values
- `Statistic.mean` — comes with mean valid values
- `Statistic.median` — comes with median valid values
- `Statistic.maximum` - comes with maximum valid values
0 commit comments