ERC-20 Security Token Contract

Job ID: 40044502

Budget: €250 – €750 EUR

I need a Solidity-written smart contract that behaves exactly like a standard ERC-20 token yet satisfies the extra demands of a fully fledged security token on Ethereum. Beyond the usual balanceOf, transfer, approve, and allowance logic, the contract must:

• Distribute dividends proportionally to holders, with a simple function I can call to deposit ETH (or any ERC-20 stable coin) and have payouts calculated and claimable. Gas-efficient bookkeeping is important.
• Enforce compliance: transfers are allowed only between addresses that have passed an off-chain KYC/AML check and been added to a whitelist. I should be able to update that whitelist through an owner-only function and pause transfers globally if regulations require.

Please write clean, well-commented code, include unit tests in Hardhat (or Foundry if you prefer), and provide a brief deployment guide I can follow on Ethereum mainnet and testnets. Later we may add voting rights, so structure the contract so new modules can slot in without breaking the existing interface.

Deliverables I expect:
– Verified Solidity source files (0.8.x or later)
– Hardhat project with tests covering core ERC-20, dividend, and compliance flows
– Deployment & verification scripts plus a short markdown guide

Once tests pass and the contract is compiled and deployable without warnings, the job is done.