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
Angela
@DuSKV9pLjlKENQH_twitter
@DuSKV9pLjlKENQH_twitter trust yourself
SafeFantom
@SafeFantom_twitter
what do i have to do
trust myself?
Angela
@DuSKV9pLjlKENQH_twitter
image.png
I only saw this
SafeFantom
@SafeFantom_twitter
yes
can you check the contract
Angela
@DuSKV9pLjlKENQH_twitter
Does DeFiETH mining?
SafeFantom
@SafeFantom_twitter
我的中文不好
I don't know
It has a rebase function
do you have wechat
SafeFantom
@SafeFantom_twitter
i really need help, got 5 bnb stuck
SafeFantom
@SafeFantom_twitter
okay i kind of know the problem, there's a txlimit, but i dont know how to raise it
SafeFantom
@SafeFantom_twitter
i put in 5bnb as liquidity, but can only take out 2% at a time (or 0.1bnb for the first transaction)
Angela
@DuSKV9pLjlKENQH_twitter
我有WhatsApp
+16572251645
Marin Ivanov
@metala:matrix.org
[m]
Is there publicly deployed smart contracts, where I can eth_call a method and get the current block number? It's for testing an Ethereum client's historical state.
I don't trust that eth_blockNumber gives me the correct result and I want to access the current block number through eth_call.
Marin Ivanov
@metala:matrix.org
[m]
Nevermind. Luckily I have found that Compound Comptroller has getBlockNumber() method that it does exactly what I want.
ilijapet
@ilijapet
I have very strange behavior of Solidity. Here is simplified version of contract:

contract Coop {

IERC20 public token;    

struct Cooperant {
    uint256 feePayed;
    uint256 kg;
    uint256 received;         
} 

// map of cooperant addresses to structs
mapping (address => Cooperant) cooperants;  
address[] public cooperantAdresses;

constructor () public {
    //proveriti 
    token = new COOPToken("COOP token", "COOP", 18, 1_000_000_000_000_000_000);
}     

// fund COOP with yearly fee
function fundCoop() public payable returns (bool) {
    cooperants[msg.sender].feePayed += msg.value;
    cooperantAdresses.push(msg.sender);
    return true;
}


 function depositFruitsToCOOP(uint256 _kg) public returns (bool) {
    token.transfer(address(this), msg.sender, _kg);  
    cooperants[msg.sender].kg += _kg;
    cooperants[msg.sender].received += _kg;
    return true;  
 }       

function getCOOPBalance() public view returns (uint256, uint256) {
return (address(this).balance, token.balanceOf(address(this)));
}

function getUserAccountBalance() public view returns (uint256, uint256,uint256, uint256){
    return (cooperants[msg.sender].feePayed, cooperants[msg.sender].kg, cooperants[msg.sender].received, token.balanceOf(msg.sender));
}

function getUsersAddresses() public view returns (address[]memory) {
return cooperantAdresses;
}
}

Now funCoop() fun set msg.sender to right value. And getUserAccountBalance() function set msg.sender global var to 0x000000
Does someone have idea why this can be the case?
Ghost
@ghost~61130d956da037398482e4b1
image.png
Hi there.
Here is a function which get prime list.
when I try to get prime list with 90, the browser is stopped.
until 30, it's okay. Why? because of network speed?
Noah Wöhler
@nwoehler.usec:matrix.org
[m]
Hi, can I post a call for participants in an interview study on open source projects here? If any mod wants more details via DM first, then I'm happy to oblige 🙂
Lasha Markhvaidze
@LashaMarkhvaidze
What are ways to build my own coin/crypto except smart contract token
4 replies
Angela
@DuSKV9pLjlKENQH_twitter
Has nobody done the popular DeFi recently?
Lasha Markhvaidze
@LashaMarkhvaidze
Is it possible to manage Bitcoin Wallet with Ethereum Smart Contract?
KaiRo
@kairo:mozilla.org
[m]
if you convert all your BTC into WBTC, then for sure
Lasha Markhvaidze
@LashaMarkhvaidze
Thank you
李诗琪
@wennie151_twitter
Does anyone know what is meant by liquidity mining?
3 replies
李诗琪
@wennie151_twitter
Does anyone use coinbase for liquidity mining ETH like I do?
0xvariable
@0xvariable:matrix.org
[m]
What is the gas cost saving with immutable variables (? gas) vs SLOAD (800 gas)?
hrkrshnn
@hrkrshnn:matrix.org
[m]
0xvariable: At runtime, reading would be 3 gas, as opposed to 2100 or 100 for sload (after EIP-2929).
1 reply
hrkrshnn
@hrkrshnn:matrix.org
[m]
For completeness’s sake, the deploy time cost for immutable will typically be larger, push32 0x... as opposed to a typical push1 val; sload. So 33 bytes v/s 3---around 6000 gas. Also, the init code will be more complex for immutables.
kent7301
@kent7301
Hello everyone who can send ETH BTC
NEO
@ethwillupto10000
Any one have the hive os source code? The newest one.

Does anyone use coinbase for liquidity mining ETH like I do?

Me

Zsolt Kacso
@kaolti
heya! I have a weird issue. Have a view call that works fine in remix, but reverts when called from golang. Other methods work fine.
Anyone ran into this before?
I use abigen to generate a go file from solidity
Zsolt Kacso
@kaolti
nvm I solved it :)
Options Eskimo
@optionseskimo
Hey, I'm working on top of some old 0x code, and I need to pull compiler binaries from the solc-bin repository (https://binaries.soliditylang.org/). I specifically needed version 0.5.17, but its binary is missing for the emscripten-wasm32 platform. The binary for that version can be found for different platforms, but I really needed it for emscripten-wasm32.
Could that missing binary be added to the solc-bin repo, by any chance? I tried opening an issue on GitHub, but I think that's blocked on that repo.
1 reply
Ronan Sandford
@wighawag
Hey, it seems that symlinked path are not automatically added to the allow-paths list
I am using pnpm package manager which symlink node_modules directory to a parent folder
the remapping is set to hardhat/=node_modules/hardhat/ but with symlink it is actually : hardhat/=../../node_modules/.pnpm/hardhat-deploy@0.9.3_hardhat@2.6.5/node_modules/hardhat-deploy which solc does not seem to be aware of as it complained about not found: File outside of allowed directories.
1 reply
qq5678
@qq5678
Hello . How can I send ether from smart contract to a person ? I have this line of code but is not working payable(address(this).balance).transfer(member1); it returns me this error TypeError: Explicit type conversion not allowed from "uint256" to "address payable"
贝克街的天才
@yuyenews
Your amount and address are reversed
qq5678
@qq5678
What do you mean