KVORUM
aaveSource: Aave governor v2 · #267

Treasury Management - Acquire B-80BAL-20WETH

executedJul 9, 2023, 02:52 PM UTCby550x55b1…f262

01Summary

AISummary by Kvorumclaude-haiku-4-5

Aave DAO will convert its BAL, aBAL, aEthBAL holdings (310,485.35 units valued at $1.4M) and 326.88 wETH ($564K) into B-80BAL-20WETH Balancer Pool Tokens (~156,134.72 BPT worth ~$1.96M total) using CoW Swap with Milkman slippage protection. This is a preparatory step before converting the BPT to veBAL for supporting GHO liquidity, AAVE collateral gauges, and the Safety Module.

Type
treasury allocation
Funding
$1961052.08

Key changes

  • Convert 300,000 BAL + 10,054.76 aBAL + 430.59 aEthBAL (total 310,485.35 BAL equivalent) to B-80BAL-20WETH via CoW Swap(high)
  • Convert 326.88 wETH to B-80BAL-20WETH via CoW Swap(high)
  • Implement Milkman-based slippage protection with dynamic price checking to guard against MEV and bad quotes(high)
  • Deploy COWTrader contract to handle token approvals, transfers, and execution of two separate trades(medium)
  • Allow trade cancellation by Aave Governance or Llama multi-sig with automatic token return to Collector(medium)

Notable concerns

  • Trade can remain open indefinitely until settled or canceled
  • Execution depends on Milkman's price oracle parameters being met during CoW Swap settlement
Contracts0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c0x11cdf91b0357d236f39d319091b21fbaed88b037
Generated by Kvorum
model: claude-haiku-4-5
provider: anthropic
profile: anthropic-fast-v1
prompt: v1.0
generated: 2mo ago
Read the description ↗

02Description

667 words

Summary

This proposal will convert Aave DAO's aBAL, aEthBAL, and BAL holdings, along with 326.88 wETH, on Ethereum to B-80BAL-20WETH.

Abstract

Aave DAO will swap BAL and wETH for B-80BAL-20WETH via CoW Swap leveraging Milkman to protect the DAO from MEV exploits, incurring bad slippage and against reentrancy risk.

The methodology and payload have been developed and tested in collaboration with Yearn Finance, CoW Swap, and Bored Ghosts Developing.

Aave DAO will convert 326.88 wETH plus all BAL, aBAL, and aEthBAL held within the Collector contract to B-80BAL-20WETH. Conversion of B-80BAL-20WETH to veBAL will occur via a separate proposal.

Motivation

Aave DAO can utilize a veBAL holding in several ways, some of which are listed below:

  • Support GHO liquidity pools with BAL emissions
  • Direct BAL emissions to gauges where the BPT is listed as Collateral on Aave Protocol.
  • Direct BAL emissions to the B-80AAVE-20WSTETH gauge, and others, in support of the Safety Module.

The proposed B-80BAL-20WETH holding, when converted to veBAL is to support all the initiatives listed above. Aave DAO retains the ability to add to the veBAL position over time as the DAO determines its longer-term strategy.

Details of events to date can be found below:

For an in-depth overview of the implementation, please see this forum post.

At the time of writing Aave DAO owns 310,485.35 equivalent units of BAL at $4.50 for a total of $1,397,184.08.

A total of 326.88 wETH is to be converted to B-80BAL-20wETH. The wETH is valued at $563,868.00 based upon a $1,725 wETH price.

The estimated total value of the B-80BAL-20WETH holding is $1,961,052.08.

1 B-80BAL-20WETH = $12.56

Aave DAO can expect to receive approximately 156,134.72 units of B-80BAL-20WETH, minus price impact, etc. This places Aave DAO within the top 15 B-80BAL-20WETH holders. When converted to veBAL, this is equivalent to 1.63% of the current veBAL supply.

Specification

We will be leveraging Milkman to do a contract-to-contract interaction. This allows the DAO to avoid the need to interact with the CoW Swap API offchain and allows for onchain enforceable dynamic slippage protection. In other words, the trade will execute only if the buy amount is higher than the minimum defined by the Milkman contract instance.

The highest profile trade to date using Milkman is the ENS trade.

The payload will do the following:

  1. Handle approvals and transfers from the Collector contract onto a newly deployed COWTrader.sol contract a. Withdraw aBAL b. Withdraw aEthBAL c. Transfer all BAL now held in Collector to COWTrader.sol d. Transfer specified wETH quantity to COWTrader.sol
  2. The COWTrader contract has one function to execute two trades using Milkman, utilizing its balance of wETH and BAL respectively. Both trades take the held token for B-80-BAL-20-WETH BPT.
  3. Milkman creates a new instance per trade, which will then hold the funds until the trades are settled via CoW Swap. Under the hood, Milkman approves CoW Swap's Settlement contract so it can transfer funds once there is a match.
  4. Once there is a match, the dynamic price checker will protect Aave's funds against a bad quote. If it passes our specified parameters, then the trade will go through and the Collector contract will receive B-80-BAL-20-WETH.

If everything goes well and the number of tokens to be received matches our parameters (slippage, price against our oracle) then the Collector contract will receive the BPT.

The trade can remain open in perpetuity until it is canceled or settled. The trade can be cancelled by either Aave Governance or an allowed Llama multi-sig. If cancelled, the tokens are sent automatically back to the collector.

Implementation

A list of relevant links for this proposal:

The proposal Payload was reviewed by Bored Ghost Developing.

Copyright

Copyright and related rights waived via CC0.

03Mismatch analysis

AIMismatch analysis by Kvorum

A calldata-vs-description analysis is not generated yet. Review the decoded actions →

04Actions

1 total
#0fallback()chain 0x1
Target
0x11cd…b037
Value
0 wei
Function
fallback()
Arguments
{}
Calldata

05Tally

Summed from votes

Voters38
VP participating431.6K
Outcome (current)For
Current support100%

06Voters

38 total
Filter:
VoterChoice% of totalRationale
320x329c…3ed4For239.2K55.42%—3y ago
620x62a4…816aFor83.2K19.29%—3y ago
130x13bd…8548For82.2K19.04%—3y ago
EA0xea17…6676For15.3K3.54%—3y ago
5B0x5b3b…7c98For7.6K1.76%—3y ago
180x1855…98baFor3K0.70%—3y ago
A00xa06c…61f7For604.60.14%—3y ago
B10xb1e8…835aFor457.10.11%—3y ago
B90xb933…8dd1For4.20.00%—3y ago
A40xa42b…8240For2.10.00%—3y ago
AD0xad7a…f871For1.50.00%—3y ago
F00xf01b…a534For1.10.00%—3y ago
0B0x0bb3…69adFor1.10.00%—3y ago
9D0x9d32…2462For1.10.00%—3y ago
420x42ad…a20aFor10.00%—3y ago
8C0x8c80…588eFor10.00%—3y ago
630x63da…dfe1For10.00%—3y ago
530x534d…3730For0.30.00%—3y ago
F80xf892…75acFor0.10.00%—3y ago
290x2944…4a16For0.10.00%—3y ago
6B0x6b05…ace8For0.10.00%—3y ago
EE0xeeda…e672For0.10.00%—3y ago
E10xe126…56fbFor00.00%—3y ago
850x85b7…9ff2For00.00%—3y ago
DF0xdf06…4977For00.00%—3y ago
930x9340…e58fFor00.00%—3y ago
7D0x7d4e…6786For00.00%—3y ago
220x220c…0a73For00.00%—3y ago
120x121d…876eFor00.00%—3y ago
670x67e5…9ff5For00.00%—3y ago
600x60ba…da27For00.00%—3y ago
AE0xaee3…6462For00.00%—3y ago
A60xa671…448dFor00.00%—3y ago
700x7094…6c6fFor00.00%—3y ago
FD0xfd9a…a59dFor00.00%—3y ago
340x3486…e8deFor00.00%—3y ago
920x92ec…1dcbFor00.00%—3y ago
8B0x8be9…e658For00.00%—3y ago
Showing 38

07Forum

No forum thread is confidently linked to this proposal.