does anyone have/ know where i can find/ able to code the binance academy bep20 template contract with one marketing tax function added. the bep20 template is great to learn on but doesnt have a tax function i can play with
Aug 20, 2021, 6:07 AM
Assuming the tax function you are talking about is redistribution, a bep20/erc20 template would not have that since it is not part of the EIP.
Aug 20, 2021, 6:21 AM
correct. i was more or less meaning the simplicity of the bep20 template with one tax feature. staring at a lot of these codes on github make my head spin with all the functions and everything
Aug 20, 2021, 6:25 AM
You can look at reflect finance
They only has a tax feature.
Aug 20, 2021, 6:37 AM
thank you!
Aug 20, 2021, 6:37 AM
np
Aug 20, 2021, 6:39 AM
sorry to bug you, but what does this mean. As of 2021.02.15 RFI contracts are now issued under GNU GPLv3 license! Have fun :)
thats on the rfi github
Aug 20, 2021, 6:40 AM
It's a free open source license. I think it's just trying to keep up-to-date since in recent versions of Solidity, a SPDX-License-Identifier must be provided.
Aug 20, 2021, 6:43 AM
That is reflection, I mean redistribution to holders
Aug 20, 2021, 7:31 AM
they are the same.
tax is redistribution.
Aug 20, 2021, 7:32 AM
Yep, same. What he is looking for is another tax fee in form of tokens to some wallet, not reflection
Aug 20, 2021, 7:33 AM
await account.sendTransaction(tx);
well, that's very easy, isn't it?
Aug 20, 2021, 7:48 AM
Agreed it is
Aug 20, 2021, 7:49 AM
https://github.com/Uniswap/liquidity-staker/tree/master/contracts
Guys, can anyone please explain in layman terms what these staking contracts do?
In particular, how are staking rewards calculated? I've been looking for explanatory materials but found none.
Say user stake x tokens at time t_1, and y tokens at time t_2, and now it is time t_3, how is the reward calculated?
That's right. Is this the same mechanism used by the staking contract?
Just curious where does the reward come from?
I understand in pancakeswap, it comes from transaction fees.
But in other pure staking protocols
I have not seen the source.
Hey guys, is it possible to add a mint function for a reflection token?
Basically, they are rewarding tokens from owner controlled wallets.
I tend to agree since I have not figured out where the rewards come from for these projects.
Oh, by the way, do you know or does anyone know how a multisig contract can be integrated with a meaningful logic contract?
I know Gnosis Safe has a multisig contract, but I don't know how it can be used.
For example, for the SafeMoon contract, CertiK auditing report criticized that it was too centralized and recommended it to use a multisig contract. Wondering how it can be done.
Pg 19.
Aug 20, 2021, 9:02 AM
Token ownership has to be with multiple wallets
Did u read code
Aug 20, 2021, 9:04 AM
Hey, yes, in theory that should be how it works, but I am wondering if there is an concrete example.
From 2 to 3, does the logic contract inherit from Gnosis Multisig contract or just call it or get called by it?
Aug 20, 2021, 9:11 AM