TokenLogic
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee
  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Introducing "StrategicAssetManager" by Llama --- title: Introducing "StrategicAssetManager" by Llama author: Llama (TokenLogic, dydymoon and Fermin Carranza) discussions: https://governance.aave.com/t/temp-check-treasury-management-introducing-strategicassetmanager/13916 --- # Summary This publication introduces the StrategicAssetManager by Llama. The StrategicAssetManager is a dedicated contract for managing Aave DAO's strategic assets, at launch it will manage the DAO's veBAL holdings. StrategicAssetManager provides the functionality needed to maximise the DAO's financial upside whilst minimising the DAO governance's overhead when managing the assets. # Motivation Please read the iniatial [forum post](https://governance.aave.com/t/temp-check-treasury-management-introducing-strategicassetmanager/13916). Building on this post, the below contains more details into how the contract will work. To limit the surface area of the contract, an `AllowList` will define which contracts can be intereacted with. This is important as the veBAL position requires onging and frequent attention. To avoid governance overload, the `Guardian` role can be assigned to a multisig. The `Guardian` acting as an `Asset Manager` then has the ability, along with the `ShortExecutor (aka Governance)` to interact with a subset of the Strategic Asset Manager contract's functions. The `AllowList` eliminates the risk of the `AssetManager` interacting with a milicious contract, running away with the DAO's funds or allocating veBoost or gauge votes to non-approved pools. The intent is to implement the highest heirarchy of control. The `AllowList` is defined and solely maintained by the `Governance`. The `AssetManger` role does not have the ability to add/remove contract addresses from the `AllowList`. This eliminates the `AssetManger` multisig signers from colluding and utilising Aave DAO's assets for self gain. Aave's Snapshot is to be used for directional changes/mandates in how the gauge votes and veBoost is to be used. The below provides a high level overview of the functionality provided by the `Strategic Asset Manager Contract`: * Lock/relock B-80BAL-WETH * Participate in gauge votes * Delegate governance voting rights * Allocate boost * Delegate boost * Allow boost on Warden * Sell boost on Warden * Claim protocol fees & other rewards * Transfer assets * Ability to lock other strategic assets * Receive assets from the ER * Receive assets from the collector * Allocate rewards to create votes incentives on Quest * Withdraw unspent votes incentives on Quest * Claim votes incentives received by voting for Aave pools on Quest The contract is upgradeable and controlled by Aave's [`Short Executor`](https://docs.aave.com/developers/guides/governance-guide#the-short-executor-is-used-for-non-governance-related-proposals-such-as-asset-listing-parameter-upda) role via governance. Each function on the contract can be implemented via the `ShortExecutor` whilst also having the ability to assign and remove, an `AssetManager` role to a community elected address. Some of the functionality and tokens the contract can interact will be available on v1 of the implementation, while others will be upgraded to include. # Specification The Strategic Asset Manager will contain an `AllowList` defining which contracts the contract can interact with. The `AllowList` can only be updated by Aave Governance via the `ShortExecutor`. The below details the specific functions on the contract with a brief description on how each works. These functions are available on v1. > **function addToAllowList(address token)** This function can only be called by`ShortExecutor`. Aave governance defines which contracts the `StrategicAssetManager` contract can interact with. > **function removeFromAllowList(address token)** external { Callable by governance } This function can only be called by`ShortExecutor`. Aave governance can remove the ability of the contract to interact with a certain token. > **function updateGuardian(address)** external { Callable by governance or guardian } Callable by governance, only `ShortExecutor` or the current `Guardian` can assign the `Guardian (AssetManager)` role to an address. Can be used to revoke the role from the assigned multi-sig. > **function getExpectedAmountOut(fromToken, toToken)** external { Lets users view how much they can expect out at any given time } Function shall query to determine the amount of token received from swap. > **function swap(address fromToken, address toToken, address recipient)** external { Callable by governance or assetManager Validate fromToken is allowed Validate toToken is allowed Validate fromToken balance is > 0 for trade Recipient is this contract only } Function shall approve and swap the specified asset/s via Cowswap using Milkman to protect against MEV attacks. > **function cancelSwap(address tradeMilkman, address fromToken, address toToken, address recipient, uint256 amount)** external { Callable by governance or assetManager Validates token is allowed Reverses trade() } Function cancels a specific swap. > **function lockVeToken(address token)** external { Only callable by governance or assetManager Validates token is allowed Depsosits into Balancer's voterEscrow contract and locks for the specified time duration } Function deposits B-80BAL-20WETH (or other token that can be locked for corresponding veToken) into voterEscrow contract with a defined lock period. > **function lockSdToken(address token)** Same as above but for sdToken. > **function voteForGaugeWeight(gauge address, uint256 amount)** external { Only callable by governance or assetManager Validates address is allowed Votes allocated amount of veBAL on gauge } Function uses the veBAL holding to vote BAL emissions for a specific gauge. > **function setDelegateSnapshot(address)** external { Only callable by governance or assetManager Validates address is allowed Delegates veBAL governance rights to address via Snapshot for balancer.eth } Function delegates veBAL vote rights on Balancer DAO Snapshot (balancer.eth) to an `AllowList` address. > **function voteAragon(address)** Function allows contract to vote on Aragon. veCRV uses Aragon for voting while veBAL uses Snapshot. > **function sellBoost(address)** external { Only callable by governance or assetManager Validates address is allowed Delegates boost to specified address } Sells contract's Boost for a specified period of time. > **function updateBoostOffer(address)** external { Only callable by governance or assetManager Validates address is allowed Delegates boost to specified address } Function updates the offer to sell boost. > **function removeBoostOffer(address)** external { Only callable by governance or assetManager Validates address is allowed Delegates boost to specified address } Function removed the offer to sell boost. > **function buyBoost(address)** external { Only callable by governance or assetManager Validates address is allowed Sells boost to specified address } Function purchases boost in order to boost expected emissions. > **function claimRewards(address)** external { Only callable by governance or assetManager Validates address is allowed Claims rewards from veBAL } Function claims rewards from selling boost. > **function withdrawERC20(address token, receiving address, uint amount)** external { Only callable by governance Validates token and address is allowed Transfer token to specified address } Function transfers assets held in StrategicAssetManager to a specified address. Only callable by governance. Further information about the deployment can be fund [here](https://github.com/bgd-labs/aave-proposals/pull/208/files#diff-d25c2c940b1a67d0c0f9f0c5258b75e8028320fa29c378b3a96e23cd99311f6f). # Copyright Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully