全部版块 我的主页
论坛 金融投资论坛 六区 金融实务版 比特币、区块链与元宇宙
1540 1
2022-10-24
本文由 威-kaifa873 整理发布,仅作为项目开发需求参考!飞机@sleu88
The Uniswap smart contract code consists of two github projects. One is the core, and the other is the neighborhood.



Core logic, the logic of a single swap. Peripheral services are built on the basis of swap one by one. A single swap, a transaction pair formed by two tokens, is commonly known as the "pool". Each transaction pair has some basic attributes: reserve0/reserve1 and total supply. Reserve0/reserve1 is the storage amount of the two tokens of the transaction pair. Total supply is the total amount of current liquidity tokens. Each transaction pair corresponds to a liquidity provider token (LPT - liquidity provider token). In short, LPT records the contributions of all liquidity providers. The sum of all liquidity tokens is total supply. The idea of the Uniswap protocol is that the product of reserve0 * reserve1 remains unchanged.

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2022-11-29 11:17:57
点个赞感谢分享
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群