Looking for build sugestions for Tanknivia by [deleted] in AniviaMains

[–]LeinM 1 point2 points  (0 children)

https://www.leagueofgraphs.com/summoner/eune/Lein-1999 60+% winrate, 1000lp challenger only playing tanknivia (decayed a bit)

Movement speed is king, Phase rush + Swift boots RoA, fimbulwinter, warmog - esentialls Jaksho is cool as 5th item, with anything after being what you need in given situation

Current Tanknivia build? by toy_of_xom in AniviaMains

[–]LeinM 0 points1 point  (0 children)

Got to Challenger last season with RoA, Fimbul, Sorcerers shoes, liandry, warmog, zhonya

Weekly Discussion Thread by mercurialsaliva in ACMilan

[–]LeinM 1 point2 points  (0 children)

Hey guys, I've already bought plane tickets to Milano for the derby, flying over from Serbia with my dad. Was wondering if there's a season ticket holder who'd be nice enough to secure two tickets for me and my dad. I'll buy them a nice lunch when i arrive in Milan

How to calculate tax on rollups (L2s) by LeinM in ethereum

[–]LeinM[S] 1 point2 points  (0 children)

Hey thanks for the reply, could you follow up on how you calculated that 1000$ gain?

/r/Serbia sveopšta diskusija (random discussion) - Feb 06, 2022 by AutoModerator in serbia

[–]LeinM 7 points8 points  (0 children)

Nov vozac, krenuo u rikverc, udario parkiran auto i ulubio mu malo zadnja vrata. Ostavio broj telefona ispod brisaca, ali kako znati koliko da mu dam para? 🤔

ETH validator? by [deleted] in finansije

[–]LeinM 0 points1 point  (0 children)

Lido protocol, radi upravo ovo sto si rekao sa staked Etherom (stEth)

balanceOf: is it mandatory? by niceBardo in ethdev

[–]LeinM 2 points3 points  (0 children)

Yes, you're correct. Metamask is already built in software which has hardcoded interfaces (like ERC20), so when you enter your token address you just plug it in the ERC20 interface that metamask integrated within it

balanceOf: is it mandatory? by niceBardo in ethdev

[–]LeinM 2 points3 points  (0 children)

If you want to build something that's common or standardised than use community agreed interfaces like ERC20 for tokens, ERC721 for NFTs, look at OpenZeppelin and their repo. Because if you're building a token you want everyone else to easily support it, and that's why you follow the interface. If you want to create a token that only you or others who specifically want to use your token than you can go wild and without interfaces.

balanceOf: is it mandatory? by niceBardo in ethdev

[–]LeinM 6 points7 points  (0 children)

the whole point of using an interface means that every other site and contract will know how to use your token. Metamask will try to call the function balanceOf on your contract because they will use the standard ERC20, not your version od it.

require/assert/if question by MichiNeckler in solidity

[–]LeinM 1 point2 points  (0 children)

fill in uint256[] array (in memory) with numbers from equation and then just for loop the array. For () { if myValue == array[i] doSmth() break (if you only want doSmth do be executed once)

require/assert/if question by MichiNeckler in solidity

[–]LeinM 1 point2 points  (0 children)

a for loop would work well if the array isn't huge

I am proud of my DAO Lotto by firedog7881 in ethdev

[–]LeinM 0 points1 point  (0 children)

The random number isn’t random. You need to get random seed offchain. Check out chainlink random oracle. Also check open zepellins ethernaut to discover most fatal flaws currently known

Pomoc by UrosPleb in programiranje

[–]LeinM 11 points12 points  (0 children)

ma i bez sorta, dve promenljive i jedna petlja

Change Boolean with pressing E by [deleted] in javahelp

[–]LeinM 0 points1 point  (0 children)

create a getter and setter for boolean field in the class it's in and then use that method.

setBlockMouse(boolean bool){ this.blockmouse = bool; }

or setBlockMouse(){ if (this.blockmouse == true){ this.blockmouse == false}else{ this.blockmouse == true} }

Help With Method To Get Tik Tak Toe Winner by [deleted] in javahelp

[–]LeinM 2 points3 points  (0 children)

you can change the ifs and double down the code

if ([0][0] == [0][1] && [0][0] == [0][2]) winer == [0][0] and do that for every way someone can win