ECONOMIC SECURITY OF SMART CONTRACTS AND BLOCKCHAINS