Skip to content

Commit

Permalink
Add example of converting float to int to Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
VadimGrznk committed Nov 3, 2020
1 parent 6b5dac3 commit 32bb8f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ If you would like to pay fees in cUSD, set the gas price manually:
stable_token = kit.base_wrapper.create_and_get_contract_by_name('StableToken')
gas_price_contract = kit.base_wrapper.create_and_get_contract_by_name('GasPriceMinimum')
gas_price_minimum = gas_price_contract.get_gas_price_minimum(stable_token.address)
gas_price = gas_price_minimum * 1.3 # Wiggle room if gas price minimum changes before tx is sent
gas_price = int(gas_price_minimum * 1.3) # Wiggle room if gas price minimum changes before tx is sent
kit.wallet_fee_currency = stable_token.address # Default to paying fees in cUSD
kit.wallet_gas_price = gas_price

Expand Down

0 comments on commit 32bb8f2

Please sign in to comment.