Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
IANAL, but I would say it's a perfectly legal contract though not an enforceable one.
If you paid dividends regardless of the contract, the bank could demonstrate no actual loss/deprivation other than its increased VAT liability, which I expect a court would look dimly on.