Skip to content

Tokenomics: Ramm Contract Unit Tests #936

@rackstar

Description

@rackstar

Overview

Write unit tests for Ramm.sol

Setup

  • fix setup.js

Main

@rackstar

  • loadState
  • storeState
  • swap
  • swapEthForNxm
  • swapNxmForEth
  • removeBudget

Views

  • getReserves
    • budget is NOT 0 (ratchet, inject, extract)
    • budget is 0 (ratchet, inject, extract)
  • getSpotPrices
  • getBookValue

Oracle

@MilGard91

  • getObservation
  • updateTwap
  • getInternalPriceAndUpdate
  • getInitialObservations

Metadata

Metadata

Labels

testUnit/integration/CI tests

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions