Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ampleforth/spot
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dev
Choose a base ref
...
head repository: ampleforth/spot
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 17 commits
  • 139 files changed
  • 5 contributors

Commits on Mar 31, 2025

  1. Configuration menu
    Copy the full SHA
    e95c7ac View commit details
    Browse the repository at this point in the history

Commits on May 8, 2025

  1. Release V5.0.0 (#244)

    * Bump coverallsapp/github-action from 2.3.0 to 2.3.3 (#228)
    
    Bumps [coverallsapp/github-action](https://github.com/coverallsapp/github-action) from 2.3.0 to 2.3.3.
    - [Release notes](https://github.com/coverallsapp/github-action/releases)
    - [Commits](coverallsapp/github-action@v2.3.0...v2.3.3)
    
    ---
    updated-dependencies:
    - dependency-name: coverallsapp/github-action
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    
    * updated cdr pricer (#229)
    
    * Deployed v4.1.0 implementations
    
    * Bump coverallsapp/github-action from 2.3.3 to 2.3.4 (#230)
    
    Bumps [coverallsapp/github-action](https://github.com/coverallsapp/github-action) from 2.3.3 to 2.3.4.
    - [Release notes](https://github.com/coverallsapp/github-action/releases)
    - [Commits](coverallsapp/github-action@v2.3.3...v2.3.4)
    
    ---
    updated-dependencies:
    - dependency-name: coverallsapp/github-action
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    
    * updated spot subgraph to keep track of vault swap volume
    
    * Vault Refactor & Meta Oracle (#224)
    
    * removed pricing strategies in favor of meta oracle
    
    * Bill broker refactor, using new meta oracle
    
    * Charm vault refactor, using new meta oracle
    
    * Updated Interfaces and Errors
    
    * updated unit tests
    
    * code review changes
    
    * Scalable usdc spot strategy (#231)
    
    Apply suggestions from code review
    
    Co-authored-by: Brandon Iles <brandon@fragments.org>
    
    review fix
    
    caching bool instead of prev deviation
    
    * billy subgraph (#234)
    
    * Deployed new oracle contract and managers (#233)
    
    * deployed new oracle and managers
    
    * updated readme
    
    * Staking subgraph (#235)
    
    * staking subgraph, refreshing store on rebase
    
    * charm wampl vault subgraph
    
    * adds timestamp to swap events subgraph (#236)
    
    * adds timestamp to swap events subgraph
    
    Signed-off-by: nms-7 <nixon.ubud@gmail.com>
    
    * linting
    
    Signed-off-by: nms-7 <nixon.ubud@gmail.com>
    
    * fixed null swap creation with 0 timestamp
    
    Signed-off-by: nms-7 <nixon.ubud@gmail.com>
    
    ---------
    
    Signed-off-by: nms-7 <nixon.ubud@gmail.com>
    
    * Bump coverallsapp/github-action from 2.3.4 to 2.3.6 (#238)
    
    Bumps [coverallsapp/github-action](https://github.com/coverallsapp/github-action) from 2.3.4 to 2.3.6.
    - [Release notes](https://github.com/coverallsapp/github-action/releases)
    - [Commits](coverallsapp/github-action@v2.3.4...v2.3.6)
    
    ---
    updated-dependencies:
    - dependency-name: coverallsapp/github-action
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    
    * Bill broker fee curve change (#237)
    
    * using fee factor instead of percentages to support -ve fees
    
    * unit tests
    
    * code review
    
    * convergent fee curve
    
    * updated charm fee yield logic (#239)
    
    * Fee curve update (#232)
    
    * fee curve update
    
    * code review fixes
    
    * Rollover fee curve update (#240)
    
    * rollover fee handles undersubscribed vault
    
    * bumped up hardhat
    
    * code review comments
    
    * DR based flash swap fees
    
    * comment updates
    
    * updated unit tests to use ethers v6, using custom mocking library
    
    * updated tasks and deps
    
    * updated perp mint fees to be paid to the vault
    
    * removed perp share of fees from flash swaps, all fees go to the vault
    
    * added configurable dr soft bounds (curve cutoff point) to flash swap fees
    
    * updated unit tests
    
    * removed rollover fees from perp
    
    * Daily Rebalance
    
    * updated unit tests
    
    * constant rate enrichment/debasement
    
    * mint2, redeem2
    
    * added linked library to limit contract size
    
    * unit tests
    
    * melding perps immediately after rebalance
    
    * Apply suggestions from code review
    
    Suggestions
    
    Co-authored-by: Brandon Iles <brandon@fragments.org>
    
    * Update spot-contracts/contracts/FeePolicy.sol
    
    Co-authored-by: Brandon Iles <brandon@fragments.org>
    
    * code review fixes
    
    * code review fixes v2
    
    * code review fixes v3
    
    * code review v4
    
    * during rebalance, vault pays perps by transferring tranches into perp's reserve
    
    * rebalance eql
    
    * configurable rebalance freq
    
    * code review v5
    
    * Apply suggestions from code review
    
    Co-authored-by: Brandon Iles <brandon@fragments.org>
    
    * code review fixes
    
    * Code review fixes
    
    Co-authored-by: Brandon Iles <brandon@fragments.org>
    
    * bill broker single sided deposit fix (#253)
    
    * Dev Audit Changes (#252)
    
    * fee policy restructure
    
    * updated perp fee and rebalance handling, audit cleanup
    
    * updated vault fee and rebalance handling, audit cleanup
    
    * interface and lib updates
    
    * updated unit tests
    
    * code review fixes #1
    
    * code review fixes #2
    
    * code review fix #3
    
    * Removed subscription ratio for a global vault:perp tvl (or system ratio) (#254)
    
    * Using a system ratio target
    
    * using system state to calculate fees
    
    * using system state for fees and removed subscription liquidity check
    
    * interface updates
    
    * unit test updates
    
    * rename
    
    * updated deps
    
    ---------
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Signed-off-by: nms-7 <nixon.ubud@gmail.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: nms-7 <57442379+nms-7@users.noreply.github.com>
    Co-authored-by: Brandon Iles <brandon@fragments.org>
    4 people authored May 8, 2025
    Configuration menu
    Copy the full SHA
    25a4544 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2025

  1. Post audit fixes (#255)

    * added note about vault's perp handling
    
    * added dr eq range
    
    * pve 002
    
    * pve-003
    
    * n1
    
    * n2
    
    * Update spot-contracts/contracts/RolloverVault.sol
    
    Co-authored-by: Brandon Iles <brandon@fragments.org>
    
    ---------
    
    Co-authored-by: Brandon Iles <brandon@fragments.org>
    aalavandhan and brandoniles authored May 30, 2025
    Configuration menu
    Copy the full SHA
    8968606 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2025

  1. Configuration menu
    Copy the full SHA
    ece590b View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2025

  1. Configuration menu
    Copy the full SHA
    5b29e35 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2025

  1. Testnet deployment v5.0 (#256)

    * upgraded bill broker testnet
    
    * updated spot and stampl on testnet
    aalavandhan authored Jun 13, 2025
    Configuration menu
    Copy the full SHA
    a5f82e6 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2025

  1. Mainnet deployment v5 (#259)

    * mainnet deployment
    
    * bill broker update
    
    * ran yarn install
    
    * notes
    aalavandhan authored Jul 1, 2025
    Configuration menu
    Copy the full SHA
    dde1112 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2025

  1. Subgraph updates for SPOT v5 (#260)

    * spot subgraph updates
    
    * updated bb subgraph
    
    * cleaned up spot subgraph
    
    * ran linter
    aalavandhan authored Jul 9, 2025
    Configuration menu
    Copy the full SHA
    aab4d8d View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2025

  1. Configuration menu
    Copy the full SHA
    b91b91d View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2025

  1. Configuration menu
    Copy the full SHA
    634e00a View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2025

  1. Bump actions/checkout from 4 to 5 (#262)

    Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
    - [Commits](actions/checkout@v4...v5)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-version: '5'
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 18, 2025
    Configuration menu
    Copy the full SHA
    1415531 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2026

  1. DRBalancerVault contract for system DR rebalancing (#269)

    * Implement a vault that holds underlying (AMPL) and perp (SPOT) tokens and auto-rebalances to maintain the system's target deviation ratio via IRolloverVault swaps.
    
    Key features:
    - Deposit underlying tokens and mint vault notes (LP tokens)
    - Redeem notes for proportional underlying + perp tokens
    - Auto-rebalance when system DR is outside equilibrium zone:
        DR < 1 (perpTVL too high): redeem perps to decrease perpTVL
        DR > 1 (perpTVL too low): mint perps to increase perpTVL
    - Rebalance formula: requiredChange = perpTVL × |dr - targetDR|
      (rolloverVaultTVL unchanged during flash mint/redeem)
    - Liquidity limits based on swap direction:
        underlying->perp: limited by underlying balance
        perp->underlying: limited by perp value held
    - Separate lag factors and percentage limits for each direction
    - Slippage protection with configurable max swap fee percentage
    - Keeper-controlled pause functionality.
    
    * Update DRBalancerVault deposit/redeem to accept both tokens with slippage protection
    
    - Update deposit() to accept both underlying and perp tokens with signature:
      deposit(underlyingAmtMax, perpAmtMax, minNotesMinted)
    - Update redeem() to include slippage protection with signature:
      redeem(notesAmt, minUnderlyingAmtOut, minPerpAmtOut)
    - Update computeMintAmt() to return (notesMinted, underlyingAmtIn, perpAmtIn)
    - First deposit accepts any ratio; subsequent deposits enforce vault ratio
    - Update Deposited event to include perpAmtIn
    - Fix lag factor comments (swapped DR conditions)
    - Add InvalidLagFactor validation to prevent division by zero
    - Update contract docstring to reflect dual-token deposits
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
    
    * renamed events
    
    * added dr eq range back
    
    * allowing empty equilibriumDR
    
    ---------
    
    Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
    aalavandhan and claude authored Feb 4, 2026
    Configuration menu
    Copy the full SHA
    15bed7b View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2026

  1. Bump actions/setup-node from 4 to 6 (#264)

    Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 6.
    - [Release notes](https://github.com/actions/setup-node/releases)
    - [Commits](actions/setup-node@v4...v6)
    
    ---
    updated-dependencies:
    - dependency-name: actions/setup-node
      dependency-version: '6'
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 6, 2026
    Configuration menu
    Copy the full SHA
    8cb8f1b View commit details
    Browse the repository at this point in the history
  2. Bump coverallsapp/github-action from 2.3.6 to 2.3.7 (#267)

    Bumps [coverallsapp/github-action](https://github.com/coverallsapp/github-action) from 2.3.6 to 2.3.7.
    - [Release notes](https://github.com/coverallsapp/github-action/releases)
    - [Commits](coverallsapp/github-action@v2.3.6...v2.3.7)
    
    ---
    updated-dependencies:
    - dependency-name: coverallsapp/github-action
      dependency-version: 2.3.7
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 6, 2026
    Configuration menu
    Copy the full SHA
    3730e07 View commit details
    Browse the repository at this point in the history
  3. Bump actions/checkout from 5 to 6 (#268)

    Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
    - [Commits](actions/checkout@v5...v6)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-version: '6'
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 6, 2026
    Configuration menu
    Copy the full SHA
    01a9898 View commit details
    Browse the repository at this point in the history
  4. updates spot subgraph deployment steps - goldsky (#266)

    * Updates  README.md
    
    * Update deploy.sh
    
    * Update README.md
    nms-7 authored Feb 6, 2026
    Configuration menu
    Copy the full SHA
    d2021ce View commit details
    Browse the repository at this point in the history
  5. Update README.md (#265)

    nms-7 authored Feb 6, 2026
    Configuration menu
    Copy the full SHA
    8ffdcfa View commit details
    Browse the repository at this point in the history
Loading