Skip to content

Commit

Permalink
Add inline documentation to document that Orchestrator will revert if…
Browse files Browse the repository at this point in the history
… any transaction fails (#203)

Co-authored-by: Ted Wu <[email protected]>
  • Loading branch information
tedwu13 and Ted Wu authored Feb 18, 2021
1 parent 212d341 commit 35b6cbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/Orchestrator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ contract Orchestrator is Ownable {
* The Orchestrator calls rebase on the policy and notifies downstream applications.
* Contracts are guarded from calling, to avoid flash loan attacks on liquidity
* providers.
* If a transaction in the transaction list reverts, it is swallowed and the remaining
* transactions are executed.
* If a transaction in the transaction list fails, Orchestrator will stop execution
* and revert to prevent a gas underprice attack.
*/
function rebase() external {
require(msg.sender == tx.origin); // solhint-disable-line avoid-tx-origin
Expand Down

0 comments on commit 35b6cbd

Please sign in to comment.