...定数字货币相关的文章,其中一篇文章 [What is a Stablecoin, and Why Does It Matter?](https://www.sfox.com/blog/what-is-a-stablecoin-and-why-does-it-matter/) 中提到的 [basis](http://www.basis.io/) 引起了我的兴趣。basis 试图提供一种基于算法协议且具备中央银...
...ublic pure returns(bytes32) {
// 1) left pad with 0 both the key and the mapping declaation index storage before concatenating.
// 2) concatenate the key with the mapping declaration index in storage.
// 3) Calculate the keccak256 hash of that concatenation. That's the ...
...ed by a basket of other tokens.
/// Here, we use a basket that is 1:1 SUI and MANAGED,
/// but this approach would work for a basket with arbitrary assets/ratios.
/// E.g., [SDR](https://www.imf.org/en/About/Factsheets/Sheets/2016/08/01/14/51/Special-Drawing-Right-SDR)
/// could be implemented t...
...pool, 5% of tokens are automatically swapped for USDT within the same pool and then added as liquidity to the USDT-DCT pool. This action triggers a swap in the USDT-DCT pool, which can be manipulated, enabling attackers to execute sandwich attacks for profit.
- Note that in this attack, "forced inv...
...hms will be increasingly important in the future because malicious attacks and software errors are increasingly common and can cause faulty nodes to exhibit arbitrary behavior. Whereas previous algorithms assumed a synchronous system or were too slow to be used in practice, the algorithm described i...