Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from h20liquidity/2024-03-07-tranche-spread-debug
Browse files Browse the repository at this point in the history
debug strat
  • Loading branch information
Siddharth2207 authored Mar 7, 2024
2 parents 4ce25b5 + f0da966 commit c54de60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/tranche-spread.rain
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
is-distribution: equal-to(output-token() distribution-token),
reserve-amount-diff: if(
is-distribution
decimal18-scale18-dynamic(input-token-decimals() input-vault-balance-increase())
decimal18-scale18-dynamic(output-token-decimals() output-vault-balance-decrease())),
decimal18-scale-18-dynamic(input-token-decimals() input-vault-balance-increase())
decimal18-scale-18-dynamic(output-token-decimals() output-vault-balance-decrease())),
tranche-space-diff: decimal18-div(reserve-amount-diff tranche-reserve-amount-total),
tranche-space-after: if(
is-distribution
Expand Down
10 changes: 5 additions & 5 deletions test/TrancheSpreadTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ contract TrancheSpreadTest is Test {
uint256 INITIAL_TRANCHE_SPACE = 1e18;
uint256 TRANCHE_SPACE_SNAP_THRESHOLD = 1e12;

uint256 constant FORK_BLOCK_NUMBER = 54062608;
uint256 constant FORK_BLOCK_NUMBER = 54342303;
uint256 constant CONTEXT_VAULT_IO_ROWS = 5;

address constant DISTRIBUTOR_TOKEN = 0xd0e9c8f5Fae381459cf07Ec506C1d2896E8b5df6;
Expand All @@ -51,10 +51,10 @@ contract TrancheSpreadTest is Test {
function setUp() public {
selectPolygonFork();

PARSER = IParserV1(0xbe7eF1c2E86cd36642Be685715a089ecc1a15f5C);
STORE = IInterpreterStoreV2(0xCCe6D0653B6DAC3B5fAd3F2A8E47cCE537126aD0);
INTERPRETER = IInterpreterV2(0x8bb0e1Ade233f386668f6e3c11762f18bF8293b3);
EXPRESSION_DEPLOYER = IExpressionDeployerV3(0xB16bbF12ECE3414af72F660aB63F4dDa1D7250FA);
PARSER = IParserV1(0x42354C16c8FcFf044c5ee73798F250138ef0A813);
STORE = IInterpreterStoreV2(0x9Ba76481F8cF7F52e440B13981e0003De474A9f7);
INTERPRETER = IInterpreterV2(0xbbe5a04A9a20c47b1A93e755aE712cb84538cd5a);
EXPRESSION_DEPLOYER = IExpressionDeployerV3(0xc64B01aB4b5549dE91e5A4425883Dff87Ceaaf29);
ORDERBOOK_SUPARSER = ISubParserV2(0x14c5D39dE54D498aFD3C803D3B5c88bbEcadcc48);
}

Expand Down

0 comments on commit c54de60

Please sign in to comment.