TypeError: Definition of base has to precede definition of derived contract on ERC20

Full source code:https://github.com/laronlineworld/busdPay/blob/main/ERC20.sol

I'm getting this error:TypeError: Definition of base has to precede definition of derived contract --> contracts/ERC20.sol:969:37: | 969 | contract BPAYBUSDDividendTracker is DividendPayingToken, Ownable { | ^^^^^^^^^^^^^^^^^^^

When compiling on remix

All you need to do is to place all base contracts before the drived contracts in your final contract.

1 Like