Skip to content

Commit

Permalink
fix: update ramos strategy to show temple assets (#877)
Browse files Browse the repository at this point in the history
* fix: update ramos strategy to show temple assets
  • Loading branch information
frontier159 authored Oct 25, 2023
1 parent 822309f commit 5bd93cc
Show file tree
Hide file tree
Showing 6 changed files with 10,208 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/slither.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- ".github/workflows/slither.yaml"
jobs:
analyze:
if: ${{ false }} # Slither has an issue with prb math, and is super slow...
# if: ${{ false }} # Slither has an issue with prb math, and is super slow...
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
10 changes: 7 additions & 3 deletions protocol/contracts/v2/strategies/RamosStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ contract RamosStrategy is AbstractStrategy, IRamosTokenVault {
using SafeERC20 for IERC20;
using SafeERC20 for ITempleERC20Token;

string private constant VERSION = "1.0.0";
string private constant VERSION = "1.0.1";

/**
* @notice The RAMOS contract used to manage the TPI
Expand Down Expand Up @@ -145,13 +145,17 @@ contract RamosStrategy is AbstractStrategy, IRamosTokenVault {
AssetBalance[] memory assetBalances
) {
// get RAMOS's quote token balance
(,, uint256 quoteTokenBalance) = ramos.positions();
(, uint256 templeTokenBalance, uint256 quoteTokenBalance) = ramos.positions();

assetBalances = new AssetBalance[](1);
assetBalances = new AssetBalance[](2);
assetBalances[0] = AssetBalance({
asset: address(quoteToken),
balance: quoteTokenBalance
});
assetBalances[1] = AssetBalance({
asset: address(templeToken),
balance: templeTokenBalance
});
}

/**
Expand Down
1 change: 1 addition & 0 deletions protocol/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
test = 'test/forge'
cache_path = 'cache-foundry'
gas_reports = ["*"]
evm_version = "paris" # See https://www.evmdiff.com/features?name=PUSH0&kind=opcode

[profile.ci]
fuzz = { runs = 5000 }
Expand Down
Loading

0 comments on commit 5bd93cc

Please sign in to comment.