Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 10 2017 22:42
    @jpitts banned @etherchamp1_twitter
  • Jun 05 2016 10:33
    @chriseth banned @adamskee
.
@hybev_twitter
@ReactTop this is the contract i tried modifying for the things i asked about before
DingTian
@ReactTop
@hybev_twitter oh
.
@hybev_twitter
@ReactTop it works fine
does anyone know if there is a token that autobuys itself? like every tx 1% fee goes to auto buy itself from lp?
DingTian
@ReactTop
@hybev_twitter
Can you specify more?
.
@hybev_twitter
like when old tokens did buybacks, but for every tx maybe
@ReactTop or is it the same result as having a deflationary token?
ericzhu12
@ericzhu12
Hi everyone, I'm forking the safemoon contract just for educational purposes - I have the contract deployed to BSC testnet, but the supply is not showing up and I don't have them in address I deployed from
Can anyone help?
ericzhu12
@ericzhu12
Nevermind! figured it out
DingTian
@ReactTop
Good
@ericzhu12
Can you help me to resolve my issue?
VM error: revert. revert The transaction has been reverted to the initial state. Note: The called function should be payable if you send value and the value you send should be less than your current balance. Debug the transaction to get more information.
when I call the function, I have this issue
bhemeswararaosomish
@bhemeswararaosomish
Hi everyone, anyone gives an overview of smart contract upgradable using proxy
hrkrshnn
@hrkrshnn:matrix.org
[m]

VM error: revert. revert The transaction has been reverted to the initial state. Note: The called function should be payable if you send value and the value you send should be less than your current balance. Debug the transaction to get more information.

ReactTop (DingTian) it's not really possible to tell what's wrong with just this. Did you try running a debugger on the transaction?

DingTian
@ReactTop
@hrkrshnn:matrix.org
thanks for your helping . yes I will share screenshot
Screen Shot 2021-04-21 at 16.01.20.png
I have this issue here: require(Token(tokenAddress).transferFrom(msg.sender, address(this), amountToStake), "Insufficient Token Allowance");
I have tokenContract too
Screen Shot 2021-04-21 at 16.03.05.png
hrkrshnn
@hrkrshnn:matrix.org
[m]
@ReactTop did you call approve?
DingTian
@ReactTop
do you mean token contract approve function?
I did it
Screen Shot 2021-04-21 at 16.07.21.png
Screen Shot 2021-04-21 at 16.07.41.png
and then I call stake function
hrkrshnn
@hrkrshnn:matrix.org
[m]
In that case, it's likely there isn't enough tokens as balance or approved.
DingTian
@ReactTop
I have minted tokens in wallet
hrkrshnn
@hrkrshnn:matrix.org
[m]
It's much better if you use a framework and write unit tests. I would say this is too complex to test from remix
DingTian
@ReactTop
Screen Shot 2021-04-21 at 16.11.27.png
hmm
can you guide simply to test with framework ?
are you thinking this can work correctly ?
hrkrshnn
@hrkrshnn:matrix.org
[m]

are you thinking this can work correctly ?

Perhaps see https://ethereum.org/en/developers/

DingTian
@ReactTop
thanks
I know it :)
.
@hybev_twitter
is there a deflationary RFI type of token?
Sabaun Taraki
@SabaunT
Hey guys!
Had a question concerning overriding function while having multiple inheritance. Does the order in override(A, B, C) matter? According to tests I made on my own, it doesn't really matter. Am I right?
cameel
@cameel:matrix.org
[m]
@SabaunT: It does not matter at all. It's a way to tell the compiler that you're aware which instances are being overridden but the order only depends on the inheritance hierarchy.
Sabaun Taraki
@SabaunT

@SabaunT: It does not matter at all. It's a way to tell the compiler that you're aware which instances are being overridden but the order only depends on the inheritance hierarchy.

Thanks!

.
@hybev_twitter

is there a deflationary RFI type of token?

anyone?

Ace Santi
@fn_santi_twitter
Thats not so hard to build tbh
I have code ready for it
@hybev_twitter pm me
Paduce
@Paduce
hey guys im trying to code a time based fee, where if you sell the token today you get a penalty of x amount , if you sell it tomorrow you get y...
Im quite new to solidity so idk
i know the timestamp is stored in "now" but don't find how to properly do this, is doing a if else loop a good idea?