So the only functionality it has is if someone wants to send me eth, but doesnt know how to interact with my contract, only knows my address?

Oct 20, 2021, 1:51 PM
z = x < y ? x : y;
how do i read this?
Its a ternary operator right?
Oct 20, 2021, 2:20 PM
If y is greater than x, z = x
Basically opposite of true is the value
Oct 20, 2021, 2:23 PM
Wound't be better to say: " x < y? z = x : z = y; "
Oct 20, 2021, 2:23 PM
Yes
But the community says no
Oct 20, 2021, 2:24 PM
oh god...
writing simple stuff in a complex way just to look smart
Oct 20, 2021, 2:25 PM
Or to reduce lines of code
Try using if else statements, It will take another 4 lines
Oct 20, 2021, 2:25 PM
yep thats for sure, well at least i learned a new thing
thanks guys
Oct 20, 2021, 2:26 PM
Ye
Oct 20, 2021, 2:26 PM
Remmer yesterday when you told me about overflow? Im looking through TreeDefi DOCs on github, and they have a library called "SafeMath" to prevent weird things that may happen during calculation. Is this related to overflow?
Oct 20, 2021, 2:35 PM
Yes
It is used to prevent overflow and underflow
But now it's usless after 0.8.0
Oct 20, 2021, 2:36 PM
yep, that was 0.4.0
Oct 20, 2021, 2:38 PM
Should I?
I should, this is what has to be done
Oct 20, 2021, 3:44 PM
where can i get the code when i visit a farm?
like how rugdoctor knows a farm is a clone? Usually they dont have a github linked
treedefi has a github repository, but this shitty farm https://snakefinance.club/farms, doesnt
Oct 20, 2021, 5:18 PM

© 2024 Draquery.com All rights reserved.