FeedProjects
Developers
Settings
🎉 A new chapter begins: Boardroom has joined Agora
Learn more
protocol logo
Explore / Projects
Nexus Mutual Grants

Proposals

Discussions

Members

Information

Create Proposal

Nexus Mutual Grants

ProposalsDiscussionsMembersInformation
Proposal
Back to Proposals
closedEnded 4 years ago · Snapshot (Offchain)

Should we give BootNode a grant to build MEV protected swaps for the mutual?

By 0xE64e...d4C469

The BootNode team has requested a grant of 16,800 USDC and 2,300 wNXM to build an alternative/replacement for the current ETH / Token swap mechanism currently used in Nexus Mutual that will enable swapping arbitrary ERC20 pairs using Gnosis Protocol (CowSwap) to avoid sandwich attacks and other forms of MEV.

The estimated timeline for this project would be 7 weeks of development and testing, with a gap period during the audit of the smart contracts.

The grant would be paid in two instalments:

  • 8,400 USDC as soon as the proposal is approved
  • 8,400 USDC and 2,300 wNXM once the code is delivered for review

Motivation

  1. If the protocol needs to make a relatively large claim payment/s in DAI then material amounts of ETH need to be swapped for DAI, at the moment the protocol would conduct this via Uniswap V2 only which doesn’t make use of the wider DEX liquidity.
  2. If the protocol wishes to swap assets for investments purposes, e.g. to sell stETH, then the same issues arise with the main difference being the time-sensitivity is likely much less than obtaining funds for claim payments.
  3. Existing asset swaps are quite highly exposed to MEV, in particular, sandwich attacks.

Project Description

The new implementation maintains the same security guarantees from the current design:

  • transactions can only be initiated from whitelisted accounts,
  • trades are only allowed in the correct price range using an onchain twap oracle,
  • and within certain thresholds previously established through governance.

The new solution could co-exist with the current Uniswap implementation, incrementing the total liquidity that is available for swaps.

Scope assumptions and constraints:

  • To reduce risk and scope, no changes will be made to the oracles that are currently in use by Nexus, this means the new implementation will not support new assets. The smart contract changes will focus on the CowSwapOperator and the required changes on the Pool contract to make it work.
  • To facilitate and make possible the correct accounting of assets, token allowances, and flow of assets between the pool and the swap operator contract, this implementation will support 1 swap operation at a time. This swap operation could be canceled and replaced by new ones if desired.
  • Both full and partial orders will be supported.
  • The implementation will target version 2 of Nexus smart contracts and will not be ported back to v1.

Members can review the full text of the proposal on the forum: https://forum.nexusmutual.io/t/proposal-mev-protected-swaps/781

Continue Reading
Connect Wallet to Add Note
0
Votes 19
VoterCast PowerVote & Rationale
0x87B2...455d45
196,688

Yes, approve BootNode grant

0x4a9f...eaEDFc
29,032

Yes, approve BootNode grant

0xe497...DcdD1a
2,371

Yes, approve BootNode grant

0x3EAD...B67c80
1,484

Yes, approve BootNode grant

0x0960...Bd9565
1,455

Yes, approve BootNode grant

SHOW MORE
VOTE POWER
0
Connect Wallet
Proposal Status
  • Thu February 10 2022, 06:45 pmVoting Period Starts
  • Thu February 17 2022, 06:45 pmEnd Voting Period
Current Results

1-Yes, approve BootNode grant

233,941.404

99.91%

2-No, don't approve BootNode grant

211.448

0.09%
DocumentationBrandingContact Us
Home
This Project is Currently Disabled

If you would like to enable it, please checkout below.

Boardroom Subscription

Sign up for an individual subscription (access all projects on the platform)

Subscribe
Enable Project

Enable the entire project for every user

Enable Project
Contact Us