Can DeFi projects written with solidity be converted and deployed on Venom using T-sol

Can DeFi projects written with solidity be converted and deployed on Venom using T-sol

1 Like

In general it isn’t possible for DeFi projects written with solidity to be converted and deployed on Venom using T-sol. It can only be in some cases, for example with a simple smart contract.

1 Like

Yes, You should only use common primitives between t-sol <–> sol in contracts without complex events. The contract should be of the type “yes, no, read, compare, save” and the function algorithms should be identical without using the language’s own instructions. If you want to make a common logic for contracts in different contexts you need a pool/bridge. Stay within the standard even if you have to write more lines of conditional code. Stay away from wait and sync statements and check floating point limits symmetrically. A simple floating point sum can open your code to overflow. Instead of using newest instructions, preprocess the data before sending parameters to the contract foo(from,to,unit,yes,metadata_formatted_of_fixed_length) than foo(from,to,unit,yes,no,json). If you are interested in standardized contracts tsol-sol visit venom-financial-instruments

1 Like