Hey guys, how can I get fee from msg.value?
I want to get 1/20 from any transaction from contract to owner address and 19/20 to _to
Nov 17, 2022, 5:57 PM
Declare a local variable and define it as 1/20th of the value the send it to the appropriate address. Then send value - tax to _to
Nov 17, 2022, 6:53 PM
Also, mb you knwo some Gravatar alternatives in web3 World? Just ot get some userpic binded to Wallet Address? Could be NFT or smth else
Nov 17, 2022, 8:23 PM
identicon
blockies
jazzicons
here's metamasks
https://github.com/MetaMask/metamask-extension/blob/develop/ui/components/ui/identicon/blockieIdenticon/blockieIdenticon.component.js#L5
blockies
jazzicons
here's metamasks
https://github.com/MetaMask/metamask-extension/blob/develop/ui/components/ui/identicon/blockieIdenticon/blockieIdenticon.component.js#L5
Nov 17, 2022, 8:57 PM