Contract 0x224BF96bd2E506FA59B0D67d20AaB39a9574efA1

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x380fd3d4a1645efe9f3e2a08544c12406dbf19bcc6c8e6dd58aafe5d6fc6fdeb55587632021-03-10 12:54:5296 days 15 hrs ago0x1a1fae6633165e6a79dfa6801b607ac3df7462b1 IN  0x224bf96bd2e506fa59b0d67d20aab39a9574efa10 BNB0.000154195
0x9e149447a2e46c897dfc256f7740b4096ec3edefad398e1ff94fdd5e8159bb5d55586792021-03-10 12:50:3596 days 15 hrs ago0x1a1fae6633165e6a79dfa6801b607ac3df7462b1 IN  Contract Creation0 BNB0.00158724
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StrategyGovernance

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at BscScan.com on 2021-03-10
*/

pragma solidity ^0.6.12;
// import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }
    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}
// import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";
abstract contract Ownable is Context {
    address private _owner;
    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );
    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }
    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }
    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }
    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }
    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(
            newOwner != address(0),
            "Ownable: new owner is the zero address"
        );
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}
interface IStrategy {
    function rebalance(uint256 _borrowRate, uint256 _borrowDepth) external;
}
contract StrategyGovernance is Ownable {
    address public strategyAddress;
    constructor(address strategyAddress_) public {
        strategyAddress = strategyAddress_;
    }
    function rebalance(uint256 _borrowRate, uint256 _borrowDepth) external onlyOwner{
        IStrategy(strategyAddress).rebalance(_borrowRate, _borrowDepth);
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"strategyAddress_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_borrowRate","type":"uint256"},{"internalType":"uint256","name":"_borrowDepth","type":"uint256"}],"name":"rebalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506040516104b23803806104b28339818101604052602081101561003357600080fd5b5051600061003f6100ae565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b03929092169190911790556100b2565b3390565b6103f1806100c16000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063715018a61461005c5780638da5cb5b14610066578063bc6b74ab1461008a578063df8879b814610092578063f2fde38b146100b5575b600080fd5b6100646100db565b005b61006e61018f565b604080516001600160a01b039092168252519081900360200190f35b61006e61019e565b610064600480360360408110156100a857600080fd5b50803590602001356101ad565b610064600480360360208110156100cb57600080fd5b50356001600160a01b0316610287565b6100e3610391565b6000546001600160a01b03908116911614610145576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001546001600160a01b031681565b6101b5610391565b6000546001600160a01b03908116911614610217576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60015460408051631bf10f3760e31b8152600481018590526024810184905290516001600160a01b039092169163df8879b89160448082019260009290919082900301818387803b15801561026b57600080fd5b505af115801561027f573d6000803e3d6000fd5b505050505050565b61028f610391565b6000546001600160a01b039081169116146102f1576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166103365760405162461bcd60e51b81526004018080602001828103825260268152602001806103966026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a26469706673582212206e7cf6237de2581b5804222f23d81bcc92b0f9fc45cc267edb5d274cff08d61d64736f6c634300060c0033000000000000000000000000d49cb5b097e9f0b51b3c61c5127a9c35bdec7051

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000d49cb5b097e9f0b51b3c61c5127a9c35bdec7051

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000d49cb5b097e9f0b51b3c61c5127a9c35bdec7051


Deployed ByteCode Sourcemap

2488:352:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1798:148;;;:::i;:::-;;1160:79;;;:::i;:::-;;;;-1:-1:-1;;;;;1160:79:0;;;;;;;;;;;;;;2534:30;;;:::i;2675:162::-;;;;;;;;;;;;;;;;-1:-1:-1;2675:162:0;;;;;;;:::i;2099:281::-;;;;;;;;;;;;;;;;-1:-1:-1;2099:281:0;-1:-1:-1;;;;;2099:281:0;;:::i;1798:148::-;1380:12;:10;:12::i;:::-;1370:6;;-1:-1:-1;;;;;1370:6:0;;;:22;;;1362:67;;;;;-1:-1:-1;;;1362:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1905:1:::1;1889:6:::0;;1868:40:::1;::::0;-1:-1:-1;;;;;1889:6:0;;::::1;::::0;1868:40:::1;::::0;1905:1;;1868:40:::1;1936:1;1919:19:::0;;-1:-1:-1;;;;;;1919:19:0::1;::::0;;1798:148::o;1160:79::-;1198:7;1225:6;-1:-1:-1;;;;;1225:6:0;1160:79;:::o;2534:30::-;;;-1:-1:-1;;;;;2534:30:0;;:::o;2675:162::-;1380:12;:10;:12::i;:::-;1370:6;;-1:-1:-1;;;;;1370:6:0;;;:22;;;1362:67;;;;;-1:-1:-1;;;1362:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2776:15:::1;::::0;2766:63:::1;::::0;;-1:-1:-1;;;2766:63:0;;::::1;::::0;::::1;::::0;;;;;;;;;;;-1:-1:-1;;;;;2776:15:0;;::::1;::::0;2766:36:::1;::::0;:63;;;;;2776:15:::1;::::0;2766:63;;;;;;;;2776:15;;2766:63;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;2675:162:::0;;:::o;2099:281::-;1380:12;:10;:12::i;:::-;1370:6;;-1:-1:-1;;;;;1370:6:0;;;:22;;;1362:67;;;;;-1:-1:-1;;;1362:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2202:22:0;::::1;2180:110;;;;-1:-1:-1::0;;;2180:110:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2327:6;::::0;;2306:38:::1;::::0;-1:-1:-1;;;;;2306:38:0;;::::1;::::0;2327:6;::::1;::::0;2306:38:::1;::::0;::::1;2355:6;:17:::0;;-1:-1:-1;;;;;;2355:17:0::1;-1:-1:-1::0;;;;;2355:17:0;;;::::1;::::0;;;::::1;::::0;;2099:281::o;172:106::-;260:10;172:106;:::o

Swarm Source

ipfs://6e7cf6237de2581b5804222f23d81bcc92b0f9fc45cc267edb5d274cff08d61d
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.