tornado-aggregator/contracts/SwapAggregator.sol

14 lines
361 B
Solidity
Raw Permalink Normal View History

2020-10-07 15:05:34 +02:00
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import "tornado-anonymity-mining/contracts/RewardSwap.sol";
contract SwapAggregator {
2020-10-08 11:06:43 +02:00
function swapState(RewardSwap swap) public view returns (uint256 balance, uint256 poolWeight) {
2020-10-07 15:05:34 +02:00
balance = swap.tornVirtualBalance();
poolWeight = swap.poolWeight();
}
}