Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update ramos strategy to show temple assets #877

Merged
merged 2 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading