Skip to content

Commit

Permalink
Merge pull request #167 from gildlab/2024-11-04-rm-cyclo
Browse files Browse the repository at this point in the history
rm cyclo and fix tests
  • Loading branch information
thedavidmeister authored Nov 4, 2024
2 parents 5694106 + 81bb848 commit cf07892
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 84 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,3 @@
[submodule "lib/rain.tier.interface"]
path = lib/rain.tier.interface
url = https://github.com/rainlanguage/rain.tier.interface
[submodule "lib/solady"]
path = lib/solady
url = https://github.com/Vectorized/solady
1 change: 0 additions & 1 deletion lib/solady
Submodule solady deleted from 4ac044
38 changes: 0 additions & 38 deletions src/concrete/receipt/CycloReceipt.sol

This file was deleted.

41 changes: 0 additions & 41 deletions test/src/concrete/receipt/CycloReceipt.metadata.t.sol

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ contract ERC20PriceOracleReceiptVaultDepositTest is ERC20PriceOracleReceiptVault
deal(address(SFLR_CONTRACT), alice, deposit);

vm.startPrank(alice);
vm.assume(vault.previewDeposit(deposit, 0) > 0);

vault.deposit(deposit, alice, 0, hex"00");
vm.stopPrank();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {SFLR_CONTRACT} from "rain.flare/lib/sflr/LibSceptreStakedFlare.sol";
import {LibERC20PriceOracleReceiptVaultFork} from "../../../lib/LibERC20PriceOracleReceiptVaultFork.sol";
import {Receipt as ReceiptContract} from "src/concrete/receipt/Receipt.sol";

contract ERC20PriceOracleReceiptVaultDepositTest is ERC20PriceOracleReceiptVaultTest {
contract ERC20PriceOracleReceiptVaultMintTest is ERC20PriceOracleReceiptVaultTest {
using LibFixedPointDecimalArithmeticOpenZeppelin for uint256;

/// Test mint function
Expand Down Expand Up @@ -192,6 +192,9 @@ contract ERC20PriceOracleReceiptVaultDepositTest is ERC20PriceOracleReceiptVault
uint256 rate = LibERC20PriceOracleReceiptVaultFork.getRate();

uint256 shares = amount.fixedPointMul(rate, Math.Rounding.Down);

vm.assume(vault.previewMint(shares, 0) > 0);

// Execute mint
vault.mint(shares, alice, 0, hex"00");
vm.stopPrank();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ contract ERC20PriceOracleReceiptVaultRedeemTest is ERC20PriceOracleReceiptVaultT

vm.startPrank(alice);
uint256 rate = LibERC20PriceOracleReceiptVaultFork.getRate();
vm.assume(vault.previewDeposit(deposit, 0) > 0);
vault.deposit(deposit, alice, 0, hex"00");

uint256 shareBalance = vault.balanceOf(alice);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ contract ERC20PriceOracleReceiptVaultWithdrawTest is ERC20PriceOracleReceiptVaul
deal(address(SFLR_CONTRACT), alice, deposit);

vm.startPrank(alice);
vm.assume(vault.previewDeposit(deposit, 0) > 0);
vault.deposit(deposit, alice, 0, hex"00");

uint256 shareBalance = vault.balanceOf(alice);
Expand Down

0 comments on commit cf07892

Please sign in to comment.