Skip to content

Commit

Permalink
rename rebalancer -> weight_changer, add constructor to atomic arbitr…
Browse files Browse the repository at this point in the history
…age contract
  • Loading branch information
kinrezC committed Oct 11, 2023
1 parent 74e662c commit 3946b59
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions box-contracts/src/AtomicArbitrage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ contract AtomicArbitrage {
address public asset;
address public quote;

constructor(address exchangeAddress, address liquidExchangeAddress, address assetAddress, address quoteAddress) {
exchange = exchangeAddress;
liquidExchange = liquidExchangeAddress;
asset = assetAddress;
quote = quoteAddress;
}


function lower_exchange_price(
uint256 input
) external {
Expand Down
1 change: 1 addition & 0 deletions box-simulation/src/setup/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ pub async fn deploy_contracts(
.add(contracts.exchanges.lex.events(), "lex")
.add(contracts.tokens.arbx.events(), "arbx")
.add(contracts.tokens.arby.events(), "arby")
.add(contracts.exchanges.g3m.events(), "g3m")
.run()?;

// agents
Expand Down

0 comments on commit 3946b59

Please sign in to comment.