I do not know about coding smart contract
But I do know defi has high risk
Today https://bnbharvest.com/ has turned scam
Though they say their smart contract has been audited
Or it has no back doors or vulnerability
Or developer cannot touch users funds
They are not true. If they wanted to steal them
They surely can. So be always alert with defi
Mostly high yield investment project defi.
If you do not want to risk your money
Never mess up with these hyip defi