找到约 13 条结果

文章 加密货币质押:复利质押如何最大化你的回报

...明](https://www.reddit.com/r/CryptoCurrency/comments/refrxn/i_dont_understand_staking_or_the_risks_involved/),即使你通过 **质押 (staking)** 赚取更多代币,大幅的价格下跌(例如 50%)也可能使你的收益失效。例如,如果你赚取 20% 的 APY,但代币的价值...

文章 剖析DeFi交易产品之UniswapV4:Swap

...; // continue swapping as long as we haven't used the entire input/output and haven't reached the price limit while (state.amountSpecifiedRemaining != 0 && state.sqrtPriceX96 != params.sqrtPriceLimitX96) { ... } ``` `while` 条件里除了判断 `amountSpecifiedRemaining` 不为 0 之外,...

文章 [译]合约整洁之道-智能合约模式和实践指南

... 区块链和[智能合约](https://learnblockchain.cn/2018/01/04/understanding-smart-contracts)的开发仍是相对较新的且高度试验性的。 他们需要与传统网络或应用开发不同的工程思维方式,传统网络或应用开发已成为“快速行动并打破常规”的准...

文章 Solidity的方方面面

... (string memory) { /**Compares if _name equals “Vivek” Throws an error and exits if not true. Solidity doesn’t have native string comparison, so we compare their keccak256 hashes to see if the strings are equaq ** / * *require(keccak256(abi.encodePacked(* name)) == keccak256(abi.encodePacke...

文章 以太坊中的 gas(汽油) 是什么意思?

...ccak256 加密哈希函数](https://learnblockchain.cn/docs/solidity/units-and-global-variables.html?#index-5),每次计算哈希时需要 30 个gas,再加上每 256 位被哈希的数据多花费 6 个gas。**在以太坊平台上通过交易或合约执行的每个操作都会消耗一定数...

文章 Optimism 中文周刊 #28

...分配。[活动及其潜在点值如下](https://gov.optimism.io/t/govnft-and-governance-participation-curriculum/8310) # 论坛新闻 ## Optimism Delegation Frame 我们在 Farcaster 上推出了 Optimism Delegation Frame。我们希望为任何人创建一种简单的方法来检查他...

文章 我们应该超越EOA,而不是进一步巩固它们(与EIP 3074相关)- EIP

...40) - [上海候选:EIP-3074](https://ethereum-magicians.org/t/shanghai-candidate-eip-3074/10781/5) - [EIP 3074 是不安全的、不必要的,使用户资金面临风险,同时破坏了 UX、流动性和钱包堆栈](https://ethereum-magicians.org/t/eip-3074-is-unsafe-unnecessary-puts-user-fu...

文章 人们为什么会不断掉入庞氏骗局?

...可能在[一场诉讼](https://coinculture.com/au/tech/investor-loses-20m-and-files-lawsuit-against-the-olympus-daos-founder/)中被揭露身份,该诉讼是由该项目的一位早期推广者提起的)。 #### Ladies’ Deposit Company:如何找到产品市场契合度 庞氏骗局不可...

文章 编写更低成本的合约:开发者Gas优化指南

...能。 本文总结了 Udemy 的课程 **“Advanced Solidity: Understanding and Optimizing Gas Costs”**,涵盖了费用机制、calldata 与 memory 的区别、变量打包和编译器优化。 应用这些技术,每次交易可以节省数千个 gas 单位,并使你的合约更精简...

文章 Substrate:一个通用的基于 Rust 的区块链框架

...ubstrate.stackexchange.com/questions/711/when-should-i-use-balances-pallet-and-when-should-i-use-assets-pallet](https://substrate.stackexchange.com/questions/711/when-should-i-use-balances-pallet-and-when-should-i-use-assets-pallet) 这是一个团队讨论构建快速 Substrate 区块链及其...

文章 CoW Swap:意图、MEV 和批量拍卖

...的 [三明治攻击](https://coinmarketcap.com/academy/article/what-are-sandwich-attacks-in-defi-and-how-can-you-avoid-them),本质上会抬高用户的购买价格。 通过 TWAP,每次下的订单规模较小。正如上图所示,对于 TWAP 的机制,它将 1000 美元的订单拆分为...

文章 KZG 多项式承诺及其在区块链中的应用(EIP-4844)

...//learnblockchain.cn/article/10840) 4. [Aniket Kate, Gregory M. Zaverucha, and Ian Goldberg — Constant-Size Commitments to Polynomials and Their Applications](https://www.iacr.org/archive/asiacrypt2010/6477178/6477178.pdf) 5. [Dankrad Feist — KZG 多项式承诺](https://dankradfeist.de/ethereum...

文章 确定性和非确定性密钥交换

...billatnapier.medium.com/...](https://billatnapier.medium.com/deterministic-and-non-deterministic-key-exchange-ace591548549) >- 登链社区 AI 助手,为大家转译优秀英文文章,如有翻译不通的地方,还请包涵~