Uses U256s for all arithmetic to avoid overflows. Unfortunately the Power trait isn't implemented for U256 in the std lib, so I ended up implementing it std_lib_extended. I opened https://github.com/FuelLabs/sway/issues/4449 upstream so we can hopefully move away from this at some point.
get_exchange_rate_and_gas_price
->get_remote_gas_data
Power
trait isn't implemented for U256 in the std lib, so I ended up implementing it std_lib_extended. I opened https://github.com/FuelLabs/sway/issues/4449 upstream so we can hopefully move away from this at some point.