Threshold Cryptography in Enhancing the Security and Scalability of DeFi