Skip to content

Base Mainnet issue with getAmountsOut #365

@Razorholt

Description

@Razorholt

I'm having difficulties swapping on Base Mainnet. I tried on Eth, Bsc and Avax chains with successful results but I can't make it work on Base. Here is the error:

Fatal error: Uncaught RuntimeException: execution reverted in /home/tradesys/vendor/web3p/web3.php/src/Providers/HttpProvider.php:198 Stack trace: #0 /home/tradesys/vendor/web3p/web3.php/src/Providers/HttpProvider.php(83): Web3\Providers\HttpProvider->sendPayload('{"id":645346134...', Object(Closure)) #1 /home/tradesys/vendor/web3p/web3.php/src/Eth.php(105): Web3\Providers\HttpProvider->send(Object(Web3\Methods\Eth\Call), Object(Closure)) #2 /home/tradesys/vendor/web3p/web3.php/src/Contract.php(667): Web3\Eth->__call('call', Array) #3 /home/tradesys/public_html/trading/test_swaptoken.php(118): Web3\Contract->call('getAmountsOut', Object(phpseclib\Math\BigInteger), Array, Array, Object(Closure)) #4 /home/tradesys/public_html/trading/test_swaptoken.php(147): getUniV2AmountsOut(Object(Web3\Contract), Object(phpseclib\Math\BigInteger), Array, Array) #5 {main} thrown in /home/tradesys/vendor/web3p/web3.php/src/Providers/HttpProvider.php on line 198

The getAmountsOut method is present in the Json file.

Thanks!
-Dan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions