找到约 15 条结果

问题 用REMIX部署uniswap v3合约,这个编译错误如何修改?

..., reserve1) : (reserve1, reserve0); uint256 amountInput = ERC20(input).balanceOf(pair) - reserveInput; uint256 amountOutput = UniswapV2Library.getAmountOut(amountInput, reserveInput, reserveOutput); (uint256 amount0Out, uint256 amount1Out) = ...

问题 使用智能合约调用Uniswap交换token时出现错误

...github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol"; contract test { address internal owner; address internal constant UNISWAP_ROUTER_ADDRESS = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ; IUniswapV2Router02 private uniswapRouter; ...

问题 用pancakeswap交易自己的带回流跟分红功能的代币,卖出代币以及添加流动性正常,但是买入跟撤出流动性就失败了

... uint256 amount ) private { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); console.log(from,to,amount); console.log('inSwapAndLiquify',inSwapAndLiquify); c...

问题 请问智能合约如何调用库这个代码为什么编译错误呢,麻烦老师给看下

...y = z; z = (x / z + z) / 2; } } } // File: contracts/external/ERC20/InitializableERC20.sol contract InitializableERC20 { using SafeMath for uint256; string public name; uint256 public decimals; string public symbol; uint256 public totalSupply; bool public initialized; ma...

问题 contractTokenBalance >= swapTokensAtAmount ,每次达到这个条件的时候,就无法转账和卖出了,只能买,不知道哪个逻辑出错了,求解!!!

... // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); ``` /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf...

问题 solidity ^0.8.9版本ETH合约转让后卖出费率达到100%

...ues/2691 return msg.data; } } interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); ...

问题 ethers 调取 PancakeSwap购买代币失败

...Dc', // 钱包地址 AMOUNT_OF_WBNB: '0.0002', Slippage: '49', //in Percentage gasPrice: '5', //in gwei gasLimit: '3401676' //at least 21000 } const bscMainnetUrl = 'https://bsc-dataseed.binance.org/'; //ankr or quiknode const privatekey = '私钥'; //without 0 const provider = ...

问题 java使用web3j,实现授权转账,a授权b,b将授权的金额转给c,这里在链上hash也有了,但是c账户收不到钱,a余额也没变怎么回事?求解

... } catch (Exception e) { throw new RuntimeException("转账ERC20 USDT失败." + e); } } ```

问题 我想问问 怎么获取一个流动池剩下的eth数量 比如下面这个代码 并没有用过IUniswapV2Pair这个库 我无法调用里面的方法

...s _owner) external view returns (uint256); } interface IERC20Upgradeable { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`...

问题 各位大佬 麻烦问一下

...niswapV2Router.sol"; import "./DividendTracker.sol"; contract Token is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public uniswapV2Router; address public immutable uniswapV2Pair; bool private swapping; bool public swapEnabled = true; DividendTr...

问题 无法在bscscan上公开合约

... } } pragma solidity ^0.6.2; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Retur...

问题 Chainlink节点在mathchain网络上搭建后,无法部署客户端智能合约

...a-chainlink-node/) ,并部署了自己的LINK代币合约,这是一个ERC677代币合约,这些成功后,尝试部署一个客户端智能合约,[ATestConsumer](https://gist.githubusercontent.com/thodges-gh/8df9420393fb29b216d1832e037f2eff/raw/350addafcd19e984cdd4465921fbcbe7ce8500d4/ATes...

问题 【区块链人才招聘】牛津(海南)区块链研究院区块链开发,研究岗位招聘

...原理,包括交易运行原理、EVM字节码等 3. 熟悉常见的EIP/ERC标准,包括ERC-20/721/777/1155 4. 熟悉Truffle、Ganache、Remix IDE等智能合约开发部署工具,了解主链、测试链开发部署流程 5. 具备1年以上的智能合约开发经验 【岗位职责】...

问题 在zksync测试网验证报错:Deployed bytecode is not equal to generated one from given source

...码 `// SPDX-License-Identifier: MIT pragma solidity ^0.8.17;interface IERC20 { event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); function totalSupply() external view returns (uint2...

问题 合约里因为分红 回流的原因 溢出了一些bnb,有什么方式可以取出来吗,有偿的,这是合约地址:0xF75e06EA851E45B612fe660e3A01Eb0314cc8d39

...twitter.com/myisland_dao?s=21 */ pragma solidity ^0.8.4; interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); ``` /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf...