Skip to content

Conversation

@krboktv
Copy link
Member

@krboktv krboktv commented Oct 20, 2019

No description provided.


func speedControl(t interface{}, speed string) (*feeCalculator, int) {
var f feeCalculator
var gaz int
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gaz -> gasPrice

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

typed := t.(responses.TokenFeeResponse)
switch speed {
case "1":
gaz = typed.GasLimit * 10 / 8
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GasLimit -> GasPrice.
GasLimit it's a max amount of gas that may be used during transaction execution

case responses.EthereumFeeResponse:
typed := t.(responses.EthereumFeeResponse)
switch speed {
case "1":
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slow / average / fast

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants