<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Permaswap</title>
        <link>https://paragraph.com/@permaswap</link>
        <description>Omnipresent Peer-to-peer; 100% Permanent 0% slippage.</description>
        <lastBuildDate>Tue, 14 Jul 2026 03:28:37 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <image>
            <title>Permaswap</title>
            <url>https://storage.googleapis.com/papyrus_images/a332f556e99baec6d9bbe7905745b806aae17a1770cf2cc1fcd0498c439cba7f.png</url>
            <link>https://paragraph.com/@permaswap</link>
        </image>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[Permaswap Network 白皮书]]></title>
            <link>https://paragraph.com/@permaswap/permaswap-network</link>
            <guid>JCSArpRxRIeR7mqQbBjg</guid>
            <pubDate>Tue, 17 May 2022 04:03:30 GMT</pubDate>
            <description><![CDATA[无处不在的 P2P 兑换网络，100% 永久持续和 0% 滑点损失。概述去中心化交易所在过去几年中创造了巨大的价值，DeFi 锁仓量超过 2000 亿美金。这些价值由去中心化的区块链智能合约所承载，从 20 年中旬开始，DeFi 的经济模型层出不穷，锁仓量迅速从几十亿美金扩展到千亿美金，可谓爆发式的增长。但是 DeFi 的性能和用户体验却一直没有改善，性能、成本和用户体验已经成为区块链扩展的重大难题。 Arweave 和 SCP（存储共识范式）为性能、成本和用户体验带来了新的解决方案。使用 SCP 开发的 everPay 具备实时的代币支付功能，可提供千万级别的交易量，同时将不同区块链的转账体验统一为更接近传统的支付方式。不论是用户还是开发者，都可以获得更便宜和高效的区块链体验。在 Arweave 和 everPay 协议之上，我们创建了 Permaswap Network，为 DeFi 用户提供更快的交易、更低的成本、和更好的用户体验。 Permaswap Network 采用了 AMM 技术，是一个完全去中心化的分布式 P2P 交易网络，具备无限的可扩展性的同时，能有效地防止...]]></description>
            <content:encoded><![CDATA[<p><strong>无处不在的 P2P 兑换网络，100% 永久持续和 0% 滑点损失。</strong></p><h1 id="h-" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">概述</h1><p>去中心化交易所在过去几年中创造了巨大的价值，DeFi 锁仓量超过 2000 亿美金。这些价值由去中心化的区块链智能合约所承载，从 20 年中旬开始，DeFi 的经济模型层出不穷，锁仓量迅速从几十亿美金扩展到千亿美金，可谓爆发式的增长。但是 DeFi 的性能和用户体验却一直没有改善，性能、成本和用户体验已经成为区块链扩展的重大难题。</p><p>Arweave 和 SCP（存储共识范式）为性能、成本和用户体验带来了新的解决方案。使用 SCP 开发的 everPay 具备实时的代币支付功能，可提供千万级别的交易量，同时将不同区块链的转账体验统一为更接近传统的支付方式。不论是用户还是开发者，都可以获得更便宜和高效的区块链体验。在 Arweave 和 everPay 协议之上，我们创建了 Permaswap Network，为 DeFi 用户提供更快的交易、更低的成本、和更好的用户体验。</p><p>Permaswap Network 采用了 AMM 技术，是一个完全去中心化的分布式 P2P 交易网络，具备无限的可扩展性的同时，能有效地防止 MEV 攻击。</p><p>网络将以 DAO 的方式运营，分四个阶段渐进进化，逐步从有限节点协调管理过渡到多节点社区治理，详见“路线”章节。</p><h3 id="h-" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">契机</h3><p>Arweave 生态的发展非常迅速，越来越多的项目选择基于 Arweave 进行开发。知名项目已经从个位数拓展到数十个，项目类型多样并具备了和 ETH 生态不一样的格局。Arweave 生态同 Ethereum 生态的对比就像 Ethereum 和 Bitcoin 的对比：Ethereum 作为一个全局计算机，支持图灵完备的链上计算，可以开发 Bitcoin 无法实现的各类金融应用；Arweave 则更进一步，提供了永久的、不可篡改并且可追溯的数据源，可以开发比 Ethereum 更多样化的应用。</p><p>开发者使用 SmartWeave 或者 SCP，可以低成本、快速地创建新型的 WEB3 应用。这些应用具备大规模扩展的能力，但是目前资产却无法像 EVM 公链一样具备灵活的组合性。组合性缺失的主要原因是 Arweave 生态基础设施仍不完善，最为需要的设施就是为项目价值提供流动性的去中心化交易所。</p><p>Permaswap 的首要目标就是为 Arweave 生态的代币提供去中心化兑换服务，激活生态代币的流动性。同时，everPay 是一个多链的 Layer0 金融基础设施，使用 everPay 为 Permaswap Network 进行结算则让 Permaswap 成为了一个多链和跨链的去中心化交易网络。</p><h3 id="h-" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">优势</h3><p>Permaswap Network 是一个完全去中心化的 P2P 网络，网络中的 LP 是点对点的自托管账户，资产由用户的密钥自行管理。任何个人或机构都可以部署符合网络协议的程序，在网络中提供流动性。网络中的节点按照协议规则分布式的进行价格计算和建点对点订单，这让该网络具有非常强的抗审查能力和扩展能力，可以为千万级用户提供交易服务。</p><p>用户使用 Permaswap 上进行交易非常的便宜，同时不会遭遇 MEV 问题，充分保障了用户权益。同时，网络协议可以灵活的支持多种 AMM 算法，让 LP 有更多的做市选择，实时快速的交易机制让 LP 也能更灵活的调整做市策略保障做市收益。</p><ul><li><p>抗审查点对点网络</p><ul><li><p>完全分布式的 P2P 网络，任何人都可以部署 Router 和 LP 节点，具备抗审查的能力，无法被中断和关闭。</p></li></ul></li><li><p>无限的扩展能力</p><ul><li><p>每个 Router 都可连接上百个 LP 节点 ，为上万的用户提供兑换服务。网络中可以部署无数个 Router，提供分布式价格计算和订单生成。</p></li></ul></li><li><p>灵活的配置</p><ul><li><p>网络协议可以支持多种类型的 AMM 做市曲线，LP 节点可以根据自己的需求选择做市曲线。</p></li></ul></li><li><p>无 MEV</p><ul><li><p>用户签署确定性 bundle 的订单，明确每一笔收入和支出，机器人无法进行 MEV 攻击，无法盗用用户资产进行套利。</p></li></ul></li><li><p>资产自托管</p><ul><li><p>密钥和资产保存在 LP 自己手中，攻击向量分散，资产安全性极高。无需担心复杂的智能合约代码实现风险，LP 节点仅按照最简单的数学公示进行报价和签署，简单易于安全审计。</p></li></ul></li></ul><p>通过下面的图表对比传统链上 AMM 和 Permaswap：</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/980ab874b319926cedb235e99c63b22473bd1f6120f27ad960c4d50ca0d27db2.png" alt="对比" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">对比</figcaption></figure><h2 id="h-" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">技术</h2><p>Permaswap Network 包含 Router 和 LP 两种类型的节点。其中 Router 负责价格聚合和订单生成，LP 为网络提供资产流动性。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="">架构</figcaption></figure><h3 id="h-router" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Router 节点</h3><p>通过质押 PSN 代币，任何个人和机构都可以成为 Router 节点。</p><p>Router 节点作为 Permaswap Network 的网络中枢，是交易订单的生成者。Router 节点会采集所有连接到本节点的 LP 报价信息（代币信息、流动性、报价区间等参数），当用户向 Router 提起交易请求时，Router 根据采集的 LP 信息生成报价，以 everPay bundle 交易的形式返回用户。用户对报价进行确认后，用自己钱包对bundle交易签署。同时该 bundle 交易也由 Router 通知对应的 LP 进行签署。当交易相关各方完成签署后，订单由 Router 发送到 everPay 实时执行。</p><blockquote><p>什么是 bundle 交易？bundle 交易是 everPay 的一种交易类型（opAction），可以进行多对多的转账，一笔交易中要求多个转出方的签名，交易在 everPay 上执行时，如果有一笔转账失败，则整个交易回滚。</p></blockquote><p>Router 节点功能：</p><ol><li><p>生成最优价格的多对多聚合订单</p></li><li><p>分发交易签署</p></li><li><p>提交订单给 everPay 进行执行</p></li></ol><p>在 Permaswap Network 里多个 Router 间可共享 LP 信息，单个 LP 的流动性会在整个网络中流通。</p><h3 id="h-lp" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">LP 节点</h3><p>通过质押 PSN 代币，任何个人和机构都可以成为 LP 节点。</p><p>LP 节点是一个注入密钥并采用特定 AMM 模型进行自动报价程序。LP 节点的运营者需要为 LP 设置好报价曲线和区间，并向 LP 注入对等的资金。这些信息都需要在 Router 进行注册。</p><p>LP 在 Router 上处于注册状态时，LP 要按照注册的信息的协议规则对 Router 分发的订单进行签署。若不能进行正确的签署将被罚没一部分质押代币。当 PSN 质押量低于某个阈值时，LP 会被 Permaswap Network 清退。</p><p>LP 可以随时停止做市，但必须向 Router 提起注销请求。注销后无需在按照协定信息进行报价，并可解除 PSN 质押。</p><h3 id="h-amm" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">AMM 模型</h3><p>目前主流 DEX 的 AMM 模型主要有以 Uniswap 为代表的恒定乘积 (x*y=k) 模型，以 Curve 为代表针对稳定币兑换的恒定总和和恒定乘积混合模型，以 DODO 为代表的主动做市（PMM）模型等。除了基于特定 AMM 模型的 DEX，也存在以 1inch、Matcha 为代表的聚合交易所，它们聚合各个 DEX 的流动性，为用户提供最优价格。</p><p>在 Permaswap Network 中，Router 节点可以自由地选择特定 AMM 模型， LP节点根据自身风险偏好及资金量，自主选择加入相应 Router 节点，并以 Router 节点的 AMM 模型做市。将来 Router 节点也可以选择交易聚合算法，此时 AMM 模型由连接的 LP 自由选择。最终 Router 可以聚合连接本节点的 LP 和网络中其他 Router 节点的报价信息，为用户提供最优价格。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/0f1a6849e8c534fa1ace9d4bd0d840cb0b68e1af7b6e03814a369e064004a08d.png" alt="k = x \* y" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">k = x \* y</figcaption></figure><p>目前 Router 节点采用特定价格范围做市的恒定乘积 AMM 模型。LP 节点可以选择多个做市的价格范围，将相应价格范围的流动性和价格移动方向作为参数提交给 Router。面对用户的交易请求，Router 会根据所有连接的 LP 节点，在特定区间内使用以下公式进行计算：</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/2583f9373f8c4bab15d2ff04033e0607674cc3c76b956071931b380ffd1fd880.png" alt="（其中 L 为该价格区间的总流动性，P 为价格变化的平方根）" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">（其中 L 为该价格区间的总流动性，P 为价格变化的平方根）</figcaption></figure><p>计算出的报价将产生一个用户和多个 LP 兑换路径，路径将转化为 everpay bundle 交易订单的形式分发给用户。用户签署订单后，Router 会立即通知 LP 进行签署。Router 会聚合一笔多方完成签署的订单，并发送至 everPay 实时执行，完成该笔交易。</p><p>由于 Router 并不绑定特定 AMM 模型，Permaswap Network 将成为一个多 AMM 模型的自动交易网络。</p><h3 id="h-" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">限价单</h3><p>除了AMM 自动做市模式，Permaswap Network 也能提供限价单的功能：</p><ol><li><p>套利机器人：用户以目标报价预先签署以套利机器人为对手方的 bundle 订单；当某个AMM Router 的报价达到目标价格，套利机器人可以完成用户的预先订单，并同时在AMM Router 中进行反向交易。</p></li><li><p>LP 单向做市：在目前已实现的恒定乘积 AMM 模型 Router 中，LP节点可以通过设置价格移动范围及价格只能在某一方向移动实现限价单。</p></li></ol><h3 id="h-mev" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">抗 MEV</h3><p>MEV 存在的原因是区块链打包的不确定性，交易排序的延迟。为了在区块打包不确定的情况下提高订单正确执行的效率，Uniswap 等 DEX 提供了兑换过程中设置滑点的功能。存在滑点的交易进入矿池之后被 MEV Bot 监听，导致用户损失滑点差价。</p><p>Permaswap 使用的 everPay bundle 交易是一种确定性的原子交易。用户签署一笔支出 1 个 tokenA，并收到 10 个 tokenB 的 bundle 交易是完全确定性的，不会发生支出 1 tokenA 仅收到 9 tokenB 的情况，任何不满足兑换规则的交易都会导致整个 bundle 完全回滚。同时，everPay 为 bundle 交易提供了实时的执行环境，让订单可以实时执行和确认，因此无需设置滑点保障订单执行效率，真正的实现所见即所得的代币兑换。</p><h1 id="h-" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">经济模型</h1><p>Permaswap 发行 PSN 用于保障网络稳定性和去中心化治理。</p><h3 id="h-" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">代币信息</h3><p>代币名称 PermaswapNetwork，简称 PSN</p><p>代币类型：Native、ERC20、PSC/PST（Arweave）</p><p>总量：1,000,000,000</p><h2 id="h-" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">代币功能</h2><p><strong>网络准入，奖励和罚没</strong></p><p>在 Permaswap Network 中，成为 LP 节点可以获得做市收益，同时能获得流动性挖矿的 PSN 代币奖励。但是我们不能保证每一个 LP 都是善良可信的节点，不能保证 LP 节点能按照协议进行报价和签名。比如恶意 LP 节点向 Router 提供非常好的价格但是拒绝签名，该行为会导致网络可用性下降。为了保障网络可用性，提供稳定可靠的交易订单，LP 加入网络时需要质押 PSN 代币。恶意拒绝提供签名的 LP 节点所质押的 PSN 将被罚没，当 PSN 数量低于阈值，节点将被网络强制清退。</p><p>Router 节点可以在网络中抽取交易手续费，网络中应当有一个合理的手续费准则，Router 需要遵循协议准则进行订单聚合和手续费抽成。同时，Router 之间需要相互共享 LP 信息，让用户在网络中获得最优的报价。当一个 Router 不能按照网络协议进行交互，恶意的为其他 Router 提供错误的 LP 信息，会导致网络的可用性降低。因此，Router 需要质押 PSN 代币，当 Router 违反协议时，所质押的 PSN 将被罚没。Router 质押的 PSN 数量低于阈值时，该节点将被网络强制清退。</p><p><strong>投票治理</strong></p><p>PSN 将用于多种治理功能，如网络协议调整、功能拓展、代币支持的投票等。</p><p><strong>收益回购</strong></p><p>Router 节点在网络中进行交易聚合时可以附加手续费。一部分手续费将用于代币回购，回购代币将进入生态基金。网络早期阶段 Router 节点不会设置特定的手续费。</p><p><strong>更多</strong></p><p>Permaswap Network 是服务 WEB3 的高性能兑换网络。PSN 代币也将深入 WEB3 生态，会在论坛，Discord 等更多社区场景中进行使用。</p><h3 id="h-" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">代币分发</h3><p>50% 用于激励流动性；20% 用于生态发展；15% 合作伙伴；15% 研发。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/2d88f7d3d26c5a74b9668d0feef065e463c2ca0b2f36ece0ed6af8a684a7483a.png" alt="分发" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">分发</figcaption></figure><p><strong>50%流动性挖矿</strong></p><p>为了保障 Permaswap Network 的启动，创建足够的流动性，50% 的代币会通过挖矿的机制分发给社区。流动性挖矿分为冷启动和社区治理两个阶段，在冷启动阶段矿池奖励由核心研发团队提供。当代币具备一定流动性之后，矿池的奖励由社区投票产生。</p><h1 id="h-" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">路线</h1><h3 id="h-" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">网络版本</h3><p>Permaswap Network 将分四个阶段进行升级和蜕变。网络早期将面临来自技术迭代，代币尚未合理分发，社区对技术理解薄弱等问题，网络会需分阶段进行引导和升级。随着技术的完善，代币的合理分发以及社区的成熟，Permaswap Network 将过度到完全 DAO 治理，届时 Permaswap Network 的节点将无处不在，随处可用。</p><p><strong>Precursor（先驱）</strong></p><p>先驱网络是 Permaswap Network 的一个先行版本，可以实现完全去信任化的交易网络。在该网络中节点不需要信任任何一方就可以完成点对点的原子兑换。</p><p>先驱网路中只有一个 Router 节点和有限的 LP 节点，这些 LP 节点由 everPay 指定的 NFT（Ticket） 持有者构成。成为 LP 节点可以进行流动性挖矿，获得代币奖励。但是先驱网络中代币不具备流通性。</p><p><strong>Forerunner（先行者，正式上线）</strong></p><p>先行者网络将完成节点去准入。任何持有 PSN 代币的个人或者机构可以通过质押 PSN 加入先行者网络，成为 LP 节点为网络提供流动性。</p><p>先行者网络会进行 PSN 空投，开启 PSN 流动性挖矿，此时 PSN 正式开始流通。</p><p><strong>Prophet（先知）</strong></p><p>先知网络将开启网络的去中心化，有限的 Router 节点担任网络中枢，个人或者机构需要持有 NFT 才能进入网络成为 Router 节点。</p><p>Router 节点之间会相互共享 LP 信息，进行网络中最优价格的分布式计算。分布式的 Router 节点将提供更强大的交易性能，服务百万级用户。</p><p><strong>Flood（洪魔）</strong></p><p>完全去中心化的、无处不在的 Permaswap Network。无准入的 Router 节点，任何个人或机构可以通过质押 PSN 成为网络中 Router 节点。每个节点都可以服务数十万用户，进行大量的价格聚合计算和订单生成，无数的 Router 节点提供无限的聚合计算能力。</p><p>Permaswap Network 成为一个完全通过 DAO 进行治理的去中心化的交易网络。</p><h3 id="h-2022-q3" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">2022 Q3</h3><ul><li><p>发布 Permaswap Precursor 网络</p></li><li><p>开启首批 NFT 流动性挖矿</p></li><li><p>跨链支持 AR、ETH、PST、ERC20 等多种代币</p></li></ul><h3 id="h-2022-q4" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">2022 Q4</h3><ul><li><p>创建 PermaDAO 通过 DAO 进行社区治理</p></li><li><p>更多链资产的接入</p></li></ul><h3 id="h-2023-q1" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">2023 Q1</h3><ul><li><p>启动 Forerunner 网络</p></li><li><p>开启 PSN 流动性挖矿</p></li><li><p>PSN 正式开始流通</p></li></ul><h3 id="h-2023-q4" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">2023 Q4</h3><ul><li><p>启动 Prophet 网络，开启多 Routers 时代</p></li></ul><h3 id="h-2024" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">2024</h3><ul><li><p>启动 Flood 网络，完成 Permaswap Network 完全去中心化治理和运营</p></li></ul><h2 id="h-" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">参考</h2><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xDc19464589c1cfdD10AEdcC1d09336622b282652/3SvLbA4Q6t-1lOMO7dPQggi8kXpEYI_RgCXuzC3MQXY">https://mirror.xyz/0xDc19464589c1cfdD10AEdcC1d09336622b282652/3SvLbA4Q6t-1lOMO7dPQggi8kXpEYI_RgCXuzC3MQXY</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/everpay.eth/mafuxM9-S4pcHtXhwfLPjLkDCoWQxtQsyEn-mhmiXAQ">https://mirror.xyz/everpay.eth/mafuxM9-S4pcHtXhwfLPjLkDCoWQxtQsyEn-mhmiXAQ</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xDc19464589c1cfdD10AEdcC1d09336622b282652/KCYNKCIhFvTZ1DmD7IpXr3p8di31ecC283HgMDqasmU">https://mirror.xyz/0xDc19464589c1cfdD10AEdcC1d09336622b282652/KCYNKCIhFvTZ1DmD7IpXr3p8di31ecC283HgMDqasmU</a></p><ul><li><p>Arweave Development Tutorial: How to Use everpay-js for Atomic Swaps. URL: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/everfinance/arweave-development-tutorial-how-to-use-everpay-js-for-atomic-swaps-b459199c9062">https://medium.com/everfinance/arweave-development-tutorial-how-to-use-everpay-js-for-atomic-swaps-b459199c9062</a></p></li><li><p>Cross-chain DEX running on Arweave. URL: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/everfinance/cross-chain-dex-running-on-arweave-what-is-everpay-swap-588957563a5a">https://medium.com/everfinance/cross-chain-dex-running-on-arweave-what-is-everpay-swap-588957563a5a</a></p></li></ul>]]></content:encoded>
            <author>permaswap@newsletter.paragraph.com (Permaswap)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/fbaac4c7c333c212c0ab3dbdbdeb49e89597e05cee46f78a7776293a9f9b7a2e.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Permaswap Network Whitepaper]]></title>
            <link>https://paragraph.com/@permaswap/permaswap-network-whitepaper</link>
            <guid>IFxUhoEVCg4AHqVKnwcU</guid>
            <pubDate>Mon, 16 May 2022 10:28:18 GMT</pubDate>
            <description><![CDATA[Omnipresent Peer-to-peer; 100% Permanent 0% slippage.OverviewDecentralized exchanges have created tremendous value over the past few years, with DeFi TVL exceeding $200 billion. This value is carried out with decentralized blockchain smart contracts. Since 2020, DeFi has seen an explosion of various economic models, with TVL rapidly expanding from billions to hundreds of billions of dollars. However, DeFi&apos;s performance and user experience have not improved. Also, performance, gas fee cos...]]></description>
            <content:encoded><![CDATA[<p><strong>Omnipresent Peer-to-peer; 100% Permanent 0% slippage.</strong></p><h2 id="h-overview" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Overview</h2><p>Decentralized exchanges have created tremendous value over the past few years, with DeFi TVL exceeding $200 billion. This value is carried out with decentralized blockchain smart contracts. Since 2020, DeFi has seen an explosion of various economic models, with TVL rapidly expanding from billions to hundreds of billions of dollars. However, DeFi&apos;s performance and user experience have not improved. Also, performance, gas fee costs and user experience has become a major challenge for blockchain scaling.</p><p>Arweave and SCP (Storage Consensus Paradigm) bring a new solution to performance, gas fee cost and user experience. everPay, based on SCP, features real-time token payments that deliver 10 million transactions while unifying the transfer experience across different blockchains into an experience closer to a traditional payment method. Both users and developers can get a cheaper and more efficient on-chain experience. On top of the Arweave and everPay protocols, we created the Permaswap Network to provide DeFi users faster transactions, lower costs, and a better overall user experience.</p><p>Using AMM technology, the Permaswap Network is a fully decentralized, distributed P2P trading network that is infinitely scalable while effectively being protected against MEV attacks.</p><p>The Permaswap network will operate as a DAO and evolve in four phases, gradually moving from limited node coordination and management to multi-node community governance, as described in the &quot;Roadmap&quot; section.</p><h3 id="h-introduction" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Introduction</h3><p>The Arweave ecosystem is growing rapidly, with more and more projects choosing to develop on Arweave. The number of well-known projects has expanded from single digits to double digits. With a variety of project types and different design patterns than the ETH ecosystem. The Arweave ecosystem compared to Ethereum is like Ethereum versus Bitcoin: Ethereum is a global computer that supports Turing-complete on-chain computing and can develop financial applications that Bitcoin cannot. Arweave goes a step further by providing a permanent, immutable, and traceable data source, allowing for a much more diverse set of applications than Ethereum.</p><p>Developers can use SmartWeave or SCP to create innovative WEB3 applications cost-effectively and quickly. These applications have the ability to scale massively, but for now assets are not as flexible and composable as on EVM blockchains. The main reason for this lack of composability is that the Arweave’s infrastructure is still inadequate; the most needed facility is a decentralized exchange that provides liquidity for projects.</p><p>Permaswap’s primary goal is to provide a decentralized exchange service for Arweave ecosystem tokens and activate the liquidity of those tokens. At the same time, everPay is a multi-chain Layer0 financial infrastructure. Using everPay to pay for Permaswap transactions makes Permaswap a multi-chain but more importantly a cross-chain decentralized trading network.</p><h3 id="h-advantages" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Advantages</h3><p>Permaswap Network is a fully decentralized P2P network where LPs in the network are peer-to-peer self-hosted accounts and assets are self-managed by the user&apos;s private key. Any individual or institution can deploy a program that conforms to the network protocol to provide liquidity in the network. The nodes in the network perform price calculations and build peer-to-peer orders in a distributed manner according to protocol rules, which makes the network censorship-resistant and scalable; this can provide trading services for tens of millions of users.</p><p>Users can trade on Permaswap with extremely low gas fees without experiencing MEV issues, which fully protects their rights. At the same time, the network protocol can flexibly support multiple AMM algorithms, giving LPs more options for market making accompanied  by real-time and fast trading mechanisms that allow LPs to adjust their market making strategies more flexibly to protect their market making returns.</p><ul><li><p>Censorship Resistant Peer-to-peer Network</p><p>A fully distributed P2P network where anyone can deploy Router and LP nodes. Censor-resistant, it cannot be interrupted or shut down.</p></li><li><p>Infinite Scalability</p><p>Each Router can connect to hundreds of LP nodes providing exchange services to thousands of users. Numerous Routers can be deployed on the network in order to provide price distribution and order generation.</p></li><li><p>Flexible Configurations</p><p>Network protocols support multiple types of AMM market-making curves. LP nodes can select market-making curves according to their own requirements.</p></li><li><p>No MEV</p><p>Users sign orders with a deterministic bundle that identifies income as well as expenditure, the bot can’t carry out MEV attacks nor can it utilize user’s assets for arbitrage.</p></li><li><p>Asset Self-Custody</p><p>Private keys and assets are kept in the hands of the LPs, attack vectors are decentralized and assets are highly secure. No need to worry about the risk of complex smart contract code implementations. LP nodes only follow the simplest mathematical notation for quoting and signing. Simple and easy to securely audit.</p></li></ul><p>Compare traditional on-chain AMM and Permaswap with the following chart:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/94e26b3c5699eecffeadf9e38ddb7213bec4c700e4405c7204731fa371deb94f.png" alt="Comparison" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Comparison</figcaption></figure><h1 id="h-architecture" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Architecture</h1><p>Permaswap Network consists of two types of nodes, Router and LP. The Router is responsible for price aggregation and order generation, while the LP provides asset liquidity to the network.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><figcaption HTMLAttributes="[object Object]" class="">Architecture</figcaption></figure><h3 id="h-router-node" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Router Node</h3><p>By staking PSN tokens, any individual and institution can be a Router node.</p><p>The Router node is the network hub of the Permaswap Network and is the generator of trade orders. The Router node collects all LP quotes (token information, liquidity, quote range, and other parameters) connected to this node, when a user makes a trade request to the Router, the Router generates a quote based on the collected LP information and returns it to the user as an everPay bundle transaction. After confirming the quote, the user signs the bundle transaction using his wallet. At the same time, the bundle transaction is notified by the Router to the corresponding LP for signing. When all parties involved in the transaction have signed, the order is then sent from the Router to everPay for real-time execution.</p><blockquote><p>What is a bundle transaction？On everPay, a bundle transaction is a type of opAction. It allows a many-to-many transfer that requires the signatures of all transfer parties. If any of the subtransactions in a bundle transaction fails, the entire bundle transaction will be rolled back.</p></blockquote><p>Router Node functions：</p><ol><li><p>Generate the best priced many-to-many aggregated orders</p></li><li><p>Distribution of signed transactions</p></li><li><p>Submit an order to everPay for fulfillment</p></li></ol><p>Within Permaswap, LP information can be shared among multiple Routers, the mobility of a single LP circulates throughout the network.</p><h3 id="h-lp-node" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">LP Node</h3><p>By staking PSN tokens, individuals and institutions can become LP nodes.</p><p>The LP node is an automated quoting program that injects keys and uses a specific AMM model. The operator of the LP node needs to set up quoting curves and intervals for the LP and inject matching funds into the LP. All this information needs to be registered with Router.</p><p>When the LP is registered on Router, the LP has to sign the orders distributed by Router according to the protocol rules of the registered information. Failure to sign correctly will result in forfeiture of a portion of the staked tokens. When the PSN staked volume falls below a certain threshold, LPs would be retired by the Permaswap Network.</p><p>LPs can stop market making at any time, but must submit a cancellation request to Router. The cancellation eliminates the need to be quoted in accordance with the agreed information and allows the cancellation of the PSN staking.</p><h3 id="h-amm-model" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">AMM Model</h3><p>Current AMM models for mainstream DEX’s include the constant product (x*y=k) model by Uniswap, the hybrid CSMM and CPMM model for stablecoin exchanges represented by Curve, and the active market making (PMM) model represented by DODO. In addition to DEXs based on specific AMM models, there are also aggregated exchanges represented by 1inch and Matcha, which aggregate the liquidity of individual DEXs to provide users with optimal prices.</p><p>With Permaswap Network, Router nodes are free to choose a specific AMM model, and LP nodes choose to join the corresponding Router node based on their own risk preferences and capital volume as well as make markets with the Router node&apos;s AMM model. In the future, the Router node can also choose the transaction aggregation algorithm, the AMM model will freely be chosen by the connected LPs. Eventually, the Router will be able to aggregate LP quotes connected to this node and other Router nodes in the network to provide users with the best prices.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/0f1a6849e8c534fa1ace9d4bd0d840cb0b68e1af7b6e03814a369e064004a08d.png" alt="k=x\*y" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">k=x\*y</figcaption></figure><p>The Router node currently uses a constant product AMM model for market making in a specific price range. LP nodes can select multiple price ranges for market making and can submit both liquidity as well as price movement directions for the corresponding price range as parameters to the Router. In response to a user&apos;s trade request, the Router uses the following formula for a specific interval based on all connected LP nodes.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/2583f9373f8c4bab15d2ff04033e0607674cc3c76b956071931b380ffd1fd880.png" alt="（L is the total liquidity in the price interval, P is the square root of price change)" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">（L is the total liquidity in the price interval, P is the square root of price change)</figcaption></figure><p>The calculated offer will generate swap paths for a user and multiple LPs, this will be converted into everPay bundled transaction orders to be distributed to the user. Once the user signs the order, the Router immediately notifies the LP to sign it. The Router aggregates a multi-party signed order and sends it to everPay for real-time execution to complete the transaction.</p><p>Since the Router is not bound to a specific AMM model, the Permaswap Network will be an automated trading network with multiple AMM models.</p><h3 id="h-limit-orders" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Limit Orders</h3><p>In addition to automatic market making (AMM), Permaswap’s Network can also provide limit orders.</p><ol><li><p>Arbitrage Bot: The user pre-signs a bundle order with the Arbitrage Bot as counterparty at the target price; when the price quoted in an AMM Router reaches the target price, the Arbitrage Robot can fill the user&apos;s pre-signed order and simultaneously place a reverse trade in the AMM Router.</p></li><li><p>LP one-way market making: In the current Constant Product AMM Model Router, LP nodes can implement limit orders by setting the price movement range making it so the price can only move in a certain direction.</p></li></ol><h3 id="h-mev-resistence" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">MEV Resistence</h3><p>MEV exists because of the uncertainty of block packing and the delay in transaction sequencing. In order to improve the efficiency of correct order executions, in the case of block packing uncertainty, DEXs such as Uniswap provide the ability to set slippage during the exchange process. Transactions with slippage are listened to by MEV Bots after entering the mining pool, causing users to lose the slippage spread.</p><p>The everPay bundle transaction used by Permaswap is a deterministic, atomic transaction. A user signing a bundle transaction where he spends 1 A token and receives 10 B tokens is completely deterministic, there is no chance of spending 1 A token and receiving only 9 B tokens. Any transaction that does not meet the exchange rules will result in a complete rollback of the entire bundle. At the same time, everPay provides a real-time execution environment for bundle transactions, allowing orders to be executed and confirmed in real time, so there is no need to set slippage to guarantee order execution efficiency, truly enabling WYSIWYG token exchange.</p><h1 id="h-economic-model" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Economic Model</h1><p>Permaswap will issue PSN tokens to guarantee network stability and a decentralized governance.</p><h3 id="h-token-info" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Token Info</h3><p>Name: PermaswapNetwork (PSN)</p><p>Standard: Native, ERC20, PSC</p><p>Max Supply: 1,000,000,000</p><h3 id="h-token-function" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Token Function</h3><p><strong>Network access, incentives and forfeitures</strong></p><p>With the Permaswap Network, being an LP node earns you market making revenue and a PSN token reward for liquidity mining. However, we cannot guarantee that every LP node is a trustworthy node without potential forfeiture of tokens as a punishment mechanism, and that LP nodes will always offer and sign correctly according to the protocol. For example, if a malicious LP node offers a very good price to Router but refuses to sign, this behavior will lead to a decrease in network availability. To guarantee network availability and provide stable and reliable trading orders, LPs need to stake PSN tokens when they first join the network. The staked PSN tokens from the LP nodes that refuse to provide signatures in bad faith will be forfeited, and when the number of PSNs falls below a threshold, the node will be forcibly removed by the network.</p><p>Router nodes can extract transaction fees within the network, there should be a reasonable fee guideline in the network, and Routers need to follow the protocol guideline for order aggregations and fee extractions. At the same time, Routers need to share LP information with each other to allow users to get the best offer in the network. When a Router fails to interact according to the network protocol and maliciously provides incorrect LP information to another Router, it can lead to reduced availability of the network. That being said, Routers need to stake PSN tokens, when Routers violate the protocol, the staked PSN tokens will be forfeited. when the amount of pledged PSN’s from Routers fall below the threshold, the node will be forcibly removed by the network.</p><p><strong>Voting governance</strong></p><p>PSN will be used for a variety of governance functions, such as network protocol adjustments, feature upgrades, voting backed by the token, etc.</p><p><strong>Earnings buyback</strong></p><p>Router nodes can add additional fees when aggregating transactions in the network. A portion of that fee will be used for a token buyback. Those buyback tokens will go into the ecosystem fund. Router nodes will not set specific fees in the early stages of the network.</p><p><strong>Other functions</strong></p><p>Permaswap Network is a high-performance exchange network serving WEB3 and the PSN token will also be used in more community scenarios such as forums, Discord, etc. in the WEB3 ecosystem.</p><h3 id="h-token-distribution" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Token Distribution</h3><p>50% for incentivizing liquidity; 20% for ecosystem; 15% investors/advisors; 15% R&amp;D.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/6751ca240f618043829c98ee24c340955bb0745e8d9c5b78858832fc1711a5f7.png" alt="Distribution" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Distribution</figcaption></figure><p><strong>50% liquidity mining</strong></p><p>To secure the launch of the Permaswap Network and create sufficient liquidity, 50% of the tokens will be distributed to the community through a mining mechanism. Liquidity mining is divided into two phases: cold start and community governance. During the cold start phase the mining pool rewards will be determined and provided by the core developer team. Once the tokens have a certain level of liquidity, the mining pool rewards will be determined by community voting.</p><h1 id="h-roadmap" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Roadmap</h1><h3 id="h-network-milestones" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Network Milestones</h3><p>Permaswap Network will be upgraded and transformed in four phases. The network’s early stages will face problems from technology iteration, token distribution, and little community understanding of how the technology works. The network will need to be guided and upgraded in stages. As the technology improves, the tokens will be reasonably distributed, and as the community matures, Permaswap Network will move to full DAO governance. The Permaswap Network nodes will be used and available everywhere and anywhere by then.</p><p><strong>Precursor</strong></p><p>Precursor Network is a prior version of Permaswap Network that enables a fully de-trusted transaction network. On this network, nodes do not need to trust any party to perform peer-to-peer atomic exchanges.</p><p>There’s only one Router node and a limited number of LP nodes. They’re composed of everPay designated NFT (Ticker) holders. LP nodes can be mined for liquidity and rewarded with tokens. However, the tokens are not transferable on the Precursor network.</p><p><strong>Forerunner (Mainnet Launch)</strong></p><p>Forerunner Network will complete permissionless node entry. Any individual or institution holding PSN tokens can join the Forerunner Network by staking PSNs and becoming an LP node in order to provide liquidity to the network.</p><p>The Forerunner network will conduct PSN airdrops to start PSN liquidity mining, PSN will then officially be in circulation.</p><p><strong>Prophet</strong></p><p>The Prophecy Network will start the decentralization of the network, with a limited number of Router nodes acting as the network hub. Individuals or institutions with NFTs will be able to enter the network as Router nodes.</p><p>Router nodes will share LP information with each other and perform distributed computation of the best price on the network. The distributed Router nodes will be able to provide a powerful trading performance and serve millions of users.</p><p><strong>Flood</strong></p><p>The fully decentralized Permaswap Network has permissionless Router nodes entry. Any individual or organization can become a Router node in the network by staking PSN. Each node will be able to serve thousands of users, perform massive price aggregation calculations and order generation. Countless Router nodes will be able to provide unlimited aggregation calculations.</p><p>Permaswap Network will then become a decentralized trading network governed entirely by DAO.</p><h3 id="h-2022-q3" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">2022 Q3</h3><ul><li><p>Release of Permaswap Precursor Network</p></li><li><p>Start of the first NFT liquidity mining</p></li><li><p>Provide cross-chain support for AR, ETH, PST, ERC20 and other tokens</p></li></ul><h3 id="h-2022-q4" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">2022 Q4</h3><ul><li><p>Creating PermaDAO Community Governance through DAO</p></li><li><p>Multi-chain Asset Access</p></li></ul><h3 id="h-2023-q1" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">2023 Q1</h3><ul><li><p>Release of Forerunner Network</p></li><li><p>Start of PSN Liquidity Mining</p></li><li><p>PSN officially starts circulation</p></li></ul><h3 id="h-2023-q4" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">2023 Q4</h3><ul><li><p>Release of Prophet Network, entering the era of multiple Routers</p></li></ul><h3 id="h-2024" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">2024</h3><ul><li><p>Release of Flood Network, completing the fully decentralized governance and operation of the Permaswap Network</p></li></ul><h1 id="h-reference" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Reference</h1><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xDc19464589c1cfdD10AEdcC1d09336622b282652/3SvLbA4Q6t-1lOMO7dPQggi8kXpEYI_RgCXuzC3MQXY">https://mirror.xyz/0xDc19464589c1cfdD10AEdcC1d09336622b282652/3SvLbA4Q6t-1lOMO7dPQggi8kXpEYI_RgCXuzC3MQXY</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/everpay.eth/aV1mucZp4JAG7j3PnZiL-RcnDBc1VIxBTp2QREqiCIQ">https://mirror.xyz/everpay.eth/aV1mucZp4JAG7j3PnZiL-RcnDBc1VIxBTp2QREqiCIQ</a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xDc19464589c1cfdD10AEdcC1d09336622b282652/KCYNKCIhFvTZ1DmD7IpXr3p8di31ecC283HgMDqasmU">https://mirror.xyz/0xDc19464589c1cfdD10AEdcC1d09336622b282652/KCYNKCIhFvTZ1DmD7IpXr3p8di31ecC283HgMDqasmU</a></p><ul><li><p>Arweave Development Tutorial: How to Use everpay-js for Atomic Swaps. URL: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/everfinance/arweave-development-tutorial-how-to-use-everpay-js-for-atomic-swaps-b459199c9062">https://medium.com/everfinance/arweave-development-tutorial-how-to-use-everpay-js-for-atomic-swaps-b459199c9062</a></p></li><li><p>Cross-chain DEX running on Arweave. URL: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/everfinance/cross-chain-dex-running-on-arweave-what-is-everpay-swap-588957563a5a">https://medium.com/everfinance/cross-chain-dex-running-on-arweave-what-is-everpay-swap-588957563a5a</a></p></li></ul>]]></content:encoded>
            <author>permaswap@newsletter.paragraph.com (Permaswap)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/1921a0d39ae57fd8a691ef0e3cd1781aec5386dddcaf31c4000b0b0ef8b123db.png" length="0" type="image/png"/>
        </item>
    </channel>
</rss>