Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 18 internal transactions
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| - | 12853313 | 1700 days ago | Contract Creation | 0 ETH | |||
| - | 12383445 | 1773 days ago | Contract Creation | 0 ETH | |||
| - | 12358878 | 1777 days ago | Contract Creation | 0 ETH | |||
| - | 12339099 | 1780 days ago | Contract Creation | 0 ETH | |||
| - | 12338486 | 1780 days ago | Contract Creation | 0 ETH | |||
| - | 12333394 | 1781 days ago | Contract Creation | 0 ETH | |||
| - | 12332665 | 1781 days ago | Contract Creation | 0 ETH | |||
| - | 12328081 | 1781 days ago | Contract Creation | 0 ETH | |||
| - | 12302484 | 1785 days ago | Contract Creation | 0 ETH | |||
| - | 12250393 | 1793 days ago | Contract Creation | 0 ETH | |||
| - | 12200492 | 1801 days ago | Contract Creation | 0 ETH | |||
| - | 12173086 | 1805 days ago | Contract Creation | 0 ETH | |||
| - | 12170245 | 1806 days ago | Contract Creation | 0 ETH | |||
| - | 12159909 | 1807 days ago | Contract Creation | 0 ETH | |||
| - | 12155762 | 1808 days ago | Contract Creation | 0 ETH | |||
| - | 12140637 | 1810 days ago | Contract Creation | 0 ETH | |||
| - | 12132436 | 1812 days ago | Contract Creation | 0 ETH | |||
| - | 12131946 | 1812 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
GemJoinForCurveSimple
Compiler Version
v0.5.12+commit.7709ece9
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2021-03-24
*/
/**
*Submitted for verification at Etherscan.io on 2021-03-22
*/
/**
*Submitted for verification at Etherscan.io on 2021-03-22
*/
pragma solidity ^0.5.12;
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
pragma solidity >=0.5.12;
contract LibNote {
event LogNote(
bytes4 indexed sig,
address indexed usr,
bytes32 indexed arg1,
bytes32 indexed arg2,
bytes data
) anonymous;
modifier note {
_;
assembly {
// log an 'anonymous' event with a constant 6 words of calldata
// and four indexed topics: selector, caller, arg1 and arg2
let mark := msize() // end of memory ensures zero
mstore(0x40, add(mark, 288)) // update free memory pointer
mstore(mark, 0x20) // bytes type data offset
mstore(add(mark, 0x20), 224) // bytes size (padded)
calldatacopy(add(mark, 0x40), 0, 224) // bytes payload
log4(
mark,
288, // calldata
shl(224, shr(224, calldataload(0))), // msg.sig
caller(), // msg.sender
calldataload(4), // arg1
calldataload(36) // arg2
)
}
}
}
contract Auth is LibNote {
mapping(address => uint256) public wards;
address public deployer;
function rely(address usr) external note auth {
wards[usr] = 1;
}
function deny(address usr) external note auth {
wards[usr] = 0;
}
modifier auth {
require(wards[msg.sender] == 1 || deployer == msg.sender, "Auth/not-authorized");
_;
}
}
pragma solidity ^0.5.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/
interface IERC20 {
function decimals() external view returns (uint8);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
function mint(address account, uint256 amount) external;
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
pragma solidity ^0.5.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*
* _Available since v2.4.0._
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*
* _Available since v2.4.0._
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*
* _Available since v2.4.0._
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
function min(uint x, uint y) internal pure returns (uint z) {
return x <= y ? x : y;
}
}
interface VatLike {
function slip(
bytes32,
address,
int256
) external;
function move(
address,
address,
uint256
) external;
}
interface CurveGaugeWrapper {
function deposit(uint256 _value, address addr) external;
function withdraw(uint256 _value) external;
function set_approve_deposit(address addr, bool can_deposit) external;
function decimals() external view returns (uint8);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
function mint(address account, uint256 amount) external;
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
interface CurveGauge {
function deposit(uint256 _value) external;
function withdraw(uint256 _value) external;
function lp_token() external view returns (address);
function minter() external view returns (address);
function crv_token() external view returns (address);
function voting_escrow() external view returns (address);
}
interface CurveGaugeReward {
function rewarded_token() external returns (address);
function claim_rewards(address addr) external;
}
interface Minter {
function mint(address gauge_addr) external;
}
interface VotingEscrow {
function create_lock(uint256 _value, uint256 _unlock_time) external;
function increase_amount(uint256 _value) external;
function increase_unlock_time(uint256 _unlock_time) external;
function withdraw() external;
}
contract Bag {
using SafeMath for uint256;
address public owner;
uint256 amnt;
constructor() public {
owner = msg.sender;
}
function claim(CurveGauge curveGauge, CurveGaugeReward curveGaugeReward) internal {
address minter = curveGauge.minter();
Minter(minter).mint(address(curveGauge));
if (address(curveGaugeReward) != address(0)) {
curveGaugeReward.claim_rewards(address(this));
}
}
function transferToken(uint256 wad, address token, address usr, uint256 total) internal {
uint256 tokenToTransfer = IERC20(token).balanceOf(address(this)).mul(wad).div(total);
require(IERC20(token).transfer(usr, tokenToTransfer), "GJFC/bag-failed-tkn-tran");
}
function exit(CurveGauge curveGauge, address gem, address usr, uint256 wad,
CurveGaugeReward curveGaugeReward) external {
require(owner == msg.sender, "GJFC/bag-exit-auth");
uint256 amntBefore = amnt;
amnt = amnt.sub(wad);
claim(curveGauge, curveGaugeReward);
transferToken(wad, curveGauge.crv_token(), usr, amntBefore);
if (address(curveGaugeReward) != address(0)) {
transferToken(wad, curveGaugeReward.rewarded_token(), usr, amntBefore);
}
curveGauge.withdraw(wad);
require(IERC20(gem).transfer(usr, wad), "GJFC/bag-failed-transfer");
}
function join(CurveGauge curveGauge, address gem, uint256 wad, CurveGaugeReward curveGaugeReward) external {
require(owner == msg.sender, "GJFC/bag-join-auth");
amnt = amnt.add(wad);
claim(curveGauge, curveGaugeReward);
IERC20(gem).approve(address(curveGauge), wad);
curveGauge.deposit(wad);
}
function init(CurveGauge curveGauge) external {
require(owner == msg.sender, "GJFC/bag-init-auth");
IERC20 crv = IERC20(curveGauge.crv_token());
crv.approve(curveGauge.voting_escrow(), uint256(-1));
}
function create_lock(CurveGauge curveGauge, uint256 _value, uint256 _unlock_time) external {
require(owner == msg.sender, "GJFC/bag-crt-auth");
VotingEscrow votingEscrow = VotingEscrow(curveGauge.voting_escrow());
votingEscrow.create_lock(_value, _unlock_time);
}
function increase_amount(CurveGauge curveGauge, uint256 _value) external {
require(owner == msg.sender, "GJFC/bag-inc-amnt-auth");
VotingEscrow votingEscrow = VotingEscrow(curveGauge.voting_escrow());
votingEscrow.increase_amount(_value);
}
function increase_unlock_time(CurveGauge curveGauge, uint256 _unlock_time) external {
require(owner == msg.sender, "GJFC/bag-inc-time-auth");
VotingEscrow votingEscrow = VotingEscrow(curveGauge.voting_escrow());
votingEscrow.increase_unlock_time(_unlock_time);
}
function withdraw(CurveGauge curveGauge, address usr) external {
require(owner == msg.sender, "GJFC/bag-with-auth");
VotingEscrow votingEscrow = VotingEscrow(curveGauge.voting_escrow());
votingEscrow.withdraw();
IERC20 crv = IERC20(curveGauge.crv_token());
require(
crv.transfer(usr, crv.balanceOf(address(this))),
"GJFC/failed-transfer"
);
}
}
/**
* @title MakerDAO like adapter for gem join
*
* see MakerDAO docs for details
*/
contract GemJoinForCurve is LibNote {
// --- Auth ---
mapping(address => uint256) public wards;
function rely(address usr) external note auth {
wards[usr] = 1;
}
function deny(address usr) external note auth {
wards[usr] = 0;
}
modifier auth {
require(wards[msg.sender] == 1, "GJFC/not-authorized");
_;
}
VatLike public vat; // CDP Engine
bytes32 public ilk; // Collateral Type
IERC20 public gem;
CurveGauge public curveGauge;
CurveGaugeReward public curveGaugeReward;
uint256 public dec;
uint256 public live; // Active Flag
mapping(address => address) public bags;
constructor(
address vat_,
bytes32 ilk_,
address curveGauge_,
bool withReward
) public {
wards[msg.sender] = 1;
live = 1;
vat = VatLike(vat_);
ilk = ilk_;
curveGauge = CurveGauge(curveGauge_);
if (withReward) {
curveGaugeReward = CurveGaugeReward(curveGauge_);
}
gem = IERC20(curveGauge.lp_token());
require(address(gem) != address(0));
dec = gem.decimals();
require(dec >= 18, "GJFC/decimals-18-or-higher");
}
function makeBag(address user) internal returns (address bag) {
if (bags[user] != address(0)) {
bag = bags[user];
} else {
Bag b = new Bag();
b.init(curveGauge);
bag = address(b);
bags[user] = bag;
}
}
function cage() external note auth {
live = 0;
}
function join(address urn, uint256 wad) external note {
require(live == 1, "GJFC/not-live");
require(int256(wad) >= 0, "GJFC/overflow");
vat.slip(ilk, urn, int256(wad));
address bag = makeBag(msg.sender);
require(
gem.transferFrom(msg.sender, bag, wad),
"GJFC/failed-transfer"
);
Bag(bag).join(curveGauge, address(gem), wad, curveGaugeReward);
}
function exit(address usr, uint256 wad) external note {
require(wad <= 2**255, "GJFC/overflow");
vat.slip(ilk, msg.sender, -int256(wad));
address bag = bags[msg.sender];
require(bag != address(0), "GJFC/zero-bag");
Bag(bag).exit(curveGauge, address(gem), usr, wad, curveGaugeReward);
}
function create_lock(uint256 _value, uint256 _unlock_time) external {
require(live == 1, "GJFC/not-live");
address bag = bags[msg.sender];
require(bag != address(0), "GJFC/zero-bag");
require(
IERC20(curveGauge.crv_token()).transferFrom(msg.sender, bag, _value),
"GJFC/failed-transfer"
);
Bag(bag).create_lock(curveGauge, _value, _unlock_time);
}
function increase_amount(uint256 _value) external {
require(live == 1, "GJFC/not-live");
address bag = bags[msg.sender];
require(bag != address(0), "GJFC/zero-bag");
require(
IERC20(curveGauge.crv_token()).transferFrom(msg.sender, bag, _value),
"GJFC/failed-transfer"
);
Bag(bag).increase_amount(curveGauge, _value);
}
function increase_unlock_time(uint256 _unlock_time) external {
require(live == 1, "GJFC/not-live");
address bag = bags[msg.sender];
require(bag != address(0), "GJFC/zero-bag");
Bag(bag).increase_unlock_time(curveGauge, _unlock_time);
}
function withdraw() external {
address bag = bags[msg.sender];
require(bag != address(0), "GJFC/zero-bag");
Bag(bag).withdraw(curveGauge, msg.sender);
}
}
contract BagSimple {
using SafeMath for uint256;
address public owner;
uint256 amnt;
constructor() public {
owner = msg.sender;
}
function claim(CurveGauge curveGauge) internal {
address minter = curveGauge.minter();
Minter(minter).mint(address(curveGauge));
}
function transferToken(uint256 wad, address token, address usr, uint256 total) internal {
uint256 tokenToTransfer = IERC20(token).balanceOf(address(this)).mul(wad).div(total);
require(IERC20(token).transfer(usr, tokenToTransfer), "GJFC/bag-failed-tkn-tran");
}
function exit(CurveGauge curveGauge, address gem, address usr, uint256 wad) external {
require(owner == msg.sender, "GJFC/bag-exit-auth");
uint256 amntBefore = amnt;
amnt = amnt.sub(wad);
claim(curveGauge);
transferToken(wad, curveGauge.crv_token(), usr, amntBefore);
curveGauge.withdraw(wad);
require(IERC20(gem).transfer(usr, wad), "GJFC/bag-failed-transfer");
}
function join(CurveGauge curveGauge, address gem, uint256 wad) external {
require(owner == msg.sender, "GJFC/bag-join-auth");
amnt = amnt.add(wad);
claim(curveGauge);
IERC20(gem).approve(address(curveGauge), wad);
curveGauge.deposit(wad);
}
function init(CurveGauge curveGauge) external {
require(owner == msg.sender, "GJFC/bag-init-auth");
IERC20 crv = IERC20(curveGauge.crv_token());
crv.approve(curveGauge.voting_escrow(), uint256(-1));
}
}
/**
* @title MakerDAO like adapter for gem join
*
* see MakerDAO docs for details
* simple optimized version with no boost
*/
contract GemJoinForCurveSimple is LibNote {
using SafeMath for uint256;
// --- Auth ---
mapping(address => uint256) public wards;
function rely(address usr) external note auth {
wards[usr] = 1;
}
function deny(address usr) external note auth {
wards[usr] = 0;
}
modifier auth {
require(wards[msg.sender] == 1, "GJFC/not-authorized");
_;
}
VatLike public vat; // CDP Engine
bytes32 public ilk; // Collateral Type
IERC20 public gem;
CurveGauge public curveGauge;
uint256 public dec;
uint256 public live; // Active Flag
uint256 public totalCollateral;
mapping(address => address) public bags;
constructor(
address vat_,
bytes32 ilk_,
address curveGauge_,
bool
) public {
wards[msg.sender] = 1;
live = 1;
vat = VatLike(vat_);
ilk = ilk_;
curveGauge = CurveGauge(curveGauge_);
gem = IERC20(curveGauge.lp_token());
require(address(gem) != address(0));
dec = gem.decimals();
require(dec >= 18, "GJFC/decimals-18-or-higher");
}
function makeBag(address user) internal returns (address bag) {
if (bags[user] != address(0)) {
bag = bags[user];
} else {
BagSimple b = new BagSimple();
b.init(curveGauge);
bag = address(b);
bags[user] = bag;
}
}
function cage() external note auth {
live = 0;
}
function join(address urn, uint256 wad) external note {
require(live == 1, "GJFC/not-live");
require(int256(wad) >= 0, "GJFC/overflow");
vat.slip(ilk, urn, int256(wad));
totalCollateral = totalCollateral.add(wad);
address bag = makeBag(msg.sender);
require(
gem.transferFrom(msg.sender, bag, wad),
"GJFC/failed-transfer"
);
BagSimple(bag).join(curveGauge, address(gem), wad);
}
function exit(address usr, uint256 wad) external note {
require(wad <= 2**255, "GJFC/overflow");
vat.slip(ilk, msg.sender, -int256(wad));
totalCollateral = totalCollateral.sub(wad);
address bag = bags[msg.sender];
require(bag != address(0), "GJFC/zero-bag");
BagSimple(bag).exit(curveGauge, address(gem), usr, wad);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"vat_","type":"address"},{"internalType":"bytes32","name":"ilk_","type":"bytes32"},{"internalType":"address","name":"curveGauge_","type":"address"},{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":true,"inputs":[{"indexed":true,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":true,"internalType":"address","name":"usr","type":"address"},{"indexed":true,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bags","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"cage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"curveGauge","outputs":[{"internalType":"contract CurveGauge","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"dec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"deny","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"gem","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ilk","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"urn","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"join","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"live","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"rely","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalCollateral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"vat","outputs":[{"internalType":"contract VatLike","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b506040516119943803806119948339818101604052608081101561003357600080fd5b508051602080830151604080850151606090950151336000908152808552829020600190819055600681905580546001600160a01b038088166001600160a01b031992831617909255600285905560048054838a1692169190911780825584517f82c63066000000000000000000000000000000000000000000000000000000008152945197989597959693959216936382c63066938183019390929091829003018186803b1580156100e557600080fd5b505afa1580156100f9573d6000803e3d6000fd5b505050506040513d602081101561010f57600080fd5b5051600380546001600160a01b0319166001600160a01b0392831617908190551661013957600080fd5b600360009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561018757600080fd5b505afa15801561019b573d6000803e3d6000fd5b505050506040513d60208110156101b157600080fd5b505160ff1660058190556012111561022a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f474a46432f646563696d616c732d31382d6f722d686967686572000000000000604482015290519081900360640190fd5b505050506117578061023d6000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c80638c4c28011161008c578063b3bcfa8211610066578063b3bcfa82146101ed578063bf353dbb146101f5578063c5ce281e1461021b578063ef693bed14610223576100ea565b80638c4c280114610199578063957aa58c146101bf5780639c52a7f1146101c7576100ea565b80634ac8eb5f116100c85780634ac8eb5f1461014957806365fae35e1461016357806369245009146101895780637bd2bea714610191576100ea565b8063280718e2146100ef57806336569e77146101135780633b4da69f1461011b575b600080fd5b6100f761024f565b6040516001600160a01b03909116815260200160405180910390f35b6100f761025e565b6101476004803603604081101561013157600080fd5b506001600160a01b03813516906020013561026d565b005b610151610543565b60405190815260200160405180910390f35b6101476004803603602081101561017957600080fd5b50356001600160a01b0316610549565b6101476105f8565b6100f761068f565b6100f7600480360360208110156101af57600080fd5b50356001600160a01b031661069e565b6101516106bb565b610147600480360360208110156101dd57600080fd5b50356001600160a01b03166106c1565b61015161076d565b6101516004803603602081101561020b57600080fd5b50356001600160a01b0316610773565b610151610787565b6101476004803603604081101561023957600080fd5b506001600160a01b03813516906020013561078d565b6004546001600160a01b031681565b6001546001600160a01b031681565b6006546001146102b35760405162461bcd60e51b815260206004820152600d60248201526c474a46432f6e6f742d6c69766560981b604482015260640160405180910390fd5b60008112156102f85760405162461bcd60e51b815260206004820152600d60248201526c474a46432f6f766572666c6f7760981b604482015260640160405180910390fd5b6001546002546001600160a01b0390911690637cdd3fde9084846040516001600160e01b031960e086901b16815260048101939093526001600160a01b0390911660248301526044820152606401600060405180830381600087803b15801561036057600080fd5b505af1158015610374573d6000803e3d6000fd5b505060075461038c925090508263ffffffff61094316565b600755600061039a336109a3565b6003549091506001600160a01b03166323b872dd3383856040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b15801561040357600080fd5b505af1158015610417573d6000803e3d6000fd5b505050506040513d602081101561042d57600080fd5b810190808051925061047f9150505760405162461bcd60e51b815260206004820152601460248201527323a5232197b330b4b632b216ba3930b739b332b960611b604482015260640160405180910390fd5b6004546003546001600160a01b0380841692639f6c3dbd929082169116856040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529190921660248201526044810191909152606401600060405180830381600087803b1580156104ef57600080fd5b505af1158015610503573d6000803e3d6000fd5b50505050505961012081016040526020815260e0602082015260e060006040830137602435600435336001600160e01b03196000351661012085a4505050565b60075481565b336000908152602081905260409020546001146105a25760405162461bcd60e51b815260206004820152601360248201527211d29190cbdb9bdd0b585d5d1a1bdc9a5e9959606a1b604482015260640160405180910390fd5b6001600160a01b0381166000908152602081905260019060409020555961012081016040526020815260e0602082015260e060006040830137602435600435336001600160e01b03196000351661012085a45050565b336000908152602081905260409020546001146106515760405162461bcd60e51b815260206004820152601360248201527211d29190cbdb9bdd0b585d5d1a1bdc9a5e9959606a1b604482015260640160405180910390fd5b60006006555961012081016040526020815260e0602082015260e060006040830137602435600435336001600160e01b03196000351661012085a450565b6003546001600160a01b031681565b6008602052806000526040600020546001600160a01b0316905081565b60065481565b3360009081526020819052604090205460011461071a5760405162461bcd60e51b815260206004820152601360248201527211d29190cbdb9bdd0b585d5d1a1bdc9a5e9959606a1b604482015260640160405180910390fd5b6001600160a01b0381166000908152602081905260408120555961012081016040526020815260e0602082015260e060006040830137602435600435336001600160e01b03196000351661012085a45050565b60055481565b600060205280600052604060002054905081565b60025481565b600160ff1b8111156107d55760405162461bcd60e51b815260206004820152600d60248201526c474a46432f6f766572666c6f7760981b604482015260640160405180910390fd5b6001546002546001600160a01b0390911690637cdd3fde903360008590036040516001600160e01b031960e086901b16815260048101939093526001600160a01b0390911660248301526044820152606401600060405180830381600087803b15801561084157600080fd5b505af1158015610855573d6000803e3d6000fd5b505060075461086d925090508263ffffffff610ad516565b600755336000908152600860205260408120546001600160a01b03169050806108cc5760405162461bcd60e51b815260206004820152600d60248201526c474a46432f7a65726f2d62616760981b604482015260640160405180910390fd5b6004546003546001600160a01b0380841692637c2dc88a92908216911686866040516001600160e01b031960e087901b1681526001600160a01b0394851660048201529284166024840152921660448201526064810191909152608401600060405180830381600087803b1580156104ef57600080fd5b60008282018381101561099c5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015260640160405180910390fd5b9392505050565b6001600160a01b038116600090815260086020528060408120546001600160a01b0316146109f4576001600160a01b0382166000908152600860205260409020546001600160a01b03169050610ad0565b6000604051610a0290610ba7565b604051809103906000f080158015610a1e573d6000803e3d6000fd5b506004549091506001600160a01b03808316916319ab453c91166040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b158015610a7957600080fd5b505af1158015610a8d573d6000803e3d6000fd5b5050506001600160a01b0384166000908152600860205291925082918291506040902080546001600160a01b0319166001600160a01b0392909216919091179055505b919050565b600061099c838360405160408082019052601e81527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000602082015260008184841115610b9f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b64578082015183820152602001610b4c565b50505050905090810190601f168015610b915780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b610b6e80610bb58339019056fe608060405234801561001057600080fd5b50600080546001600160a01b03191633179055610b3c806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806319ab453c146100515780637c2dc88a146100795780638da5cb5b146100b55780639f6c3dbd146100d9575b600080fd5b6100776004803603602081101561006757600080fd5b50356001600160a01b031661010f565b005b6100776004803603608081101561008f57600080fd5b506001600160a01b038135811691602081013582169160408201351690606001356102c3565b6100bd6104e8565b604080516001600160a01b039092168252519081900360200190f35b610077600480360360608110156100ef57600080fd5b506001600160a01b038135811691602081013590911690604001356104f7565b6000546001600160a01b03163314610163576040805162461bcd60e51b815260206004820152601260248201527108e948c865ec4c2ce5ad2dcd2e85ac2eae8d60731b604482015290519081900360640190fd5b6000816001600160a01b03166376d8b1176040518163ffffffff1660e01b815260040160206040518083038186803b15801561019e57600080fd5b505afa1580156101b2573d6000803e3d6000fd5b505050506040513d60208110156101c857600080fd5b50516040805163dfe0503160e01b815290519192506001600160a01b038084169263095ea7b3929186169163dfe05031916004808301926020929190829003018186803b15801561021857600080fd5b505afa15801561022c573d6000803e3d6000fd5b505050506040513d602081101561024257600080fd5b5051604080516001600160e01b031960e085901b1681526001600160a01b03909216600483015260001960248301525160448083019260209291908290030181600087803b15801561029357600080fd5b505af11580156102a7573d6000803e3d6000fd5b505050506040513d60208110156102bd57600080fd5b50505050565b6000546001600160a01b03163314610317576040805162461bcd60e51b815260206004820152601260248201527108e948c865ec4c2ce5acaf0d2e85ac2eae8d60731b604482015290519081900360640190fd5b60015461032a818363ffffffff61065b16565b600155610336856106a6565b6103a682866001600160a01b03166376d8b1176040518163ffffffff1660e01b815260040160206040518083038186803b15801561037357600080fd5b505afa158015610387573d6000803e3d6000fd5b505050506040513d602081101561039d57600080fd5b50518584610777565b846001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156103ec57600080fd5b505af1158015610400573d6000803e3d6000fd5b50505050836001600160a01b031663a9059cbb84846040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561046457600080fd5b505af1158015610478573d6000803e3d6000fd5b505050506040513d602081101561048e57600080fd5b50516104e1576040805162461bcd60e51b815260206004820152601860248201527f474a46432f6261672d6661696c65642d7472616e736665720000000000000000604482015290519081900360640190fd5b5050505050565b6000546001600160a01b031681565b6000546001600160a01b0316331461054b576040805162461bcd60e51b815260206004820152601260248201527108e948c865ec4c2ce5ad4ded2dc5ac2eae8d60731b604482015290519081900360640190fd5b60015461055e908263ffffffff6108fa16565b60015561056a836106a6565b816001600160a01b031663095ea7b384836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156105ca57600080fd5b505af11580156105de573d6000803e3d6000fd5b505050506040513d60208110156105f457600080fd5b50506040805163b6b55f2560e01b81526004810183905290516001600160a01b0385169163b6b55f2591602480830192600092919082900301818387803b15801561063e57600080fd5b505af1158015610652573d6000803e3d6000fd5b50505050505050565b600061069d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610954565b90505b92915050565b6000816001600160a01b031663075461726040518163ffffffff1660e01b815260040160206040518083038186803b1580156106e157600080fd5b505afa1580156106f5573d6000803e3d6000fd5b505050506040513d602081101561070b57600080fd5b5051604080516335313c2160e11b81526001600160a01b038581166004830152915192935090831691636a6278429160248082019260009290919082900301818387803b15801561075b57600080fd5b505af115801561076f573d6000803e3d6000fd5b505050505050565b600061081b8261080f87876001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156107d757600080fd5b505afa1580156107eb573d6000803e3d6000fd5b505050506040513d602081101561080157600080fd5b50519063ffffffff6109eb16565b9063ffffffff610a4416565b9050836001600160a01b031663a9059cbb84836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561087d57600080fd5b505af1158015610891573d6000803e3d6000fd5b505050506040513d60208110156108a757600080fd5b50516104e1576040805162461bcd60e51b815260206004820152601860248201527f474a46432f6261672d6661696c65642d746b6e2d7472616e0000000000000000604482015290519081900360640190fd5b60008282018381101561069d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600081848411156109e35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109a8578181015183820152602001610990565b50505050905090810190601f1680156109d55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000826109fa575060006106a0565b82820282848281610a0757fe5b041461069d5760405162461bcd60e51b8152600401808060200182810382526021815260200180610ae76021913960400191505060405180910390fd5b600061069d83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060008183610ad05760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156109a8578181015183820152602001610990565b506000838581610adc57fe5b049594505050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a723158204eb8bb0f3212d2efec419345930702f875dab393305226b8e6fdd0d8e863839264736f6c634300050c0032a265627a7a7231582072dcafbeddda0608993361706288c17288ceeb547ced6ba19d47cc16c915887164736f6c634300050c0032000000000000000000000000694532928af9288f83aacba5b932caf51fec22d54352565f33504f4f4c2d42000000000000000000000000000000000000000000000000000000000000000000bfcf63294ad7105dea65aa58f8ae5be2d9d0952a0000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c80638c4c28011161008c578063b3bcfa8211610066578063b3bcfa82146101ed578063bf353dbb146101f5578063c5ce281e1461021b578063ef693bed14610223576100ea565b80638c4c280114610199578063957aa58c146101bf5780639c52a7f1146101c7576100ea565b80634ac8eb5f116100c85780634ac8eb5f1461014957806365fae35e1461016357806369245009146101895780637bd2bea714610191576100ea565b8063280718e2146100ef57806336569e77146101135780633b4da69f1461011b575b600080fd5b6100f761024f565b6040516001600160a01b03909116815260200160405180910390f35b6100f761025e565b6101476004803603604081101561013157600080fd5b506001600160a01b03813516906020013561026d565b005b610151610543565b60405190815260200160405180910390f35b6101476004803603602081101561017957600080fd5b50356001600160a01b0316610549565b6101476105f8565b6100f761068f565b6100f7600480360360208110156101af57600080fd5b50356001600160a01b031661069e565b6101516106bb565b610147600480360360208110156101dd57600080fd5b50356001600160a01b03166106c1565b61015161076d565b6101516004803603602081101561020b57600080fd5b50356001600160a01b0316610773565b610151610787565b6101476004803603604081101561023957600080fd5b506001600160a01b03813516906020013561078d565b6004546001600160a01b031681565b6001546001600160a01b031681565b6006546001146102b35760405162461bcd60e51b815260206004820152600d60248201526c474a46432f6e6f742d6c69766560981b604482015260640160405180910390fd5b60008112156102f85760405162461bcd60e51b815260206004820152600d60248201526c474a46432f6f766572666c6f7760981b604482015260640160405180910390fd5b6001546002546001600160a01b0390911690637cdd3fde9084846040516001600160e01b031960e086901b16815260048101939093526001600160a01b0390911660248301526044820152606401600060405180830381600087803b15801561036057600080fd5b505af1158015610374573d6000803e3d6000fd5b505060075461038c925090508263ffffffff61094316565b600755600061039a336109a3565b6003549091506001600160a01b03166323b872dd3383856040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b15801561040357600080fd5b505af1158015610417573d6000803e3d6000fd5b505050506040513d602081101561042d57600080fd5b810190808051925061047f9150505760405162461bcd60e51b815260206004820152601460248201527323a5232197b330b4b632b216ba3930b739b332b960611b604482015260640160405180910390fd5b6004546003546001600160a01b0380841692639f6c3dbd929082169116856040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529190921660248201526044810191909152606401600060405180830381600087803b1580156104ef57600080fd5b505af1158015610503573d6000803e3d6000fd5b50505050505961012081016040526020815260e0602082015260e060006040830137602435600435336001600160e01b03196000351661012085a4505050565b60075481565b336000908152602081905260409020546001146105a25760405162461bcd60e51b815260206004820152601360248201527211d29190cbdb9bdd0b585d5d1a1bdc9a5e9959606a1b604482015260640160405180910390fd5b6001600160a01b0381166000908152602081905260019060409020555961012081016040526020815260e0602082015260e060006040830137602435600435336001600160e01b03196000351661012085a45050565b336000908152602081905260409020546001146106515760405162461bcd60e51b815260206004820152601360248201527211d29190cbdb9bdd0b585d5d1a1bdc9a5e9959606a1b604482015260640160405180910390fd5b60006006555961012081016040526020815260e0602082015260e060006040830137602435600435336001600160e01b03196000351661012085a450565b6003546001600160a01b031681565b6008602052806000526040600020546001600160a01b0316905081565b60065481565b3360009081526020819052604090205460011461071a5760405162461bcd60e51b815260206004820152601360248201527211d29190cbdb9bdd0b585d5d1a1bdc9a5e9959606a1b604482015260640160405180910390fd5b6001600160a01b0381166000908152602081905260408120555961012081016040526020815260e0602082015260e060006040830137602435600435336001600160e01b03196000351661012085a45050565b60055481565b600060205280600052604060002054905081565b60025481565b600160ff1b8111156107d55760405162461bcd60e51b815260206004820152600d60248201526c474a46432f6f766572666c6f7760981b604482015260640160405180910390fd5b6001546002546001600160a01b0390911690637cdd3fde903360008590036040516001600160e01b031960e086901b16815260048101939093526001600160a01b0390911660248301526044820152606401600060405180830381600087803b15801561084157600080fd5b505af1158015610855573d6000803e3d6000fd5b505060075461086d925090508263ffffffff610ad516565b600755336000908152600860205260408120546001600160a01b03169050806108cc5760405162461bcd60e51b815260206004820152600d60248201526c474a46432f7a65726f2d62616760981b604482015260640160405180910390fd5b6004546003546001600160a01b0380841692637c2dc88a92908216911686866040516001600160e01b031960e087901b1681526001600160a01b0394851660048201529284166024840152921660448201526064810191909152608401600060405180830381600087803b1580156104ef57600080fd5b60008282018381101561099c5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015260640160405180910390fd5b9392505050565b6001600160a01b038116600090815260086020528060408120546001600160a01b0316146109f4576001600160a01b0382166000908152600860205260409020546001600160a01b03169050610ad0565b6000604051610a0290610ba7565b604051809103906000f080158015610a1e573d6000803e3d6000fd5b506004549091506001600160a01b03808316916319ab453c91166040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b158015610a7957600080fd5b505af1158015610a8d573d6000803e3d6000fd5b5050506001600160a01b0384166000908152600860205291925082918291506040902080546001600160a01b0319166001600160a01b0392909216919091179055505b919050565b600061099c838360405160408082019052601e81527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000602082015260008184841115610b9f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b64578082015183820152602001610b4c565b50505050905090810190601f168015610b915780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b610b6e80610bb58339019056fe608060405234801561001057600080fd5b50600080546001600160a01b03191633179055610b3c806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806319ab453c146100515780637c2dc88a146100795780638da5cb5b146100b55780639f6c3dbd146100d9575b600080fd5b6100776004803603602081101561006757600080fd5b50356001600160a01b031661010f565b005b6100776004803603608081101561008f57600080fd5b506001600160a01b038135811691602081013582169160408201351690606001356102c3565b6100bd6104e8565b604080516001600160a01b039092168252519081900360200190f35b610077600480360360608110156100ef57600080fd5b506001600160a01b038135811691602081013590911690604001356104f7565b6000546001600160a01b03163314610163576040805162461bcd60e51b815260206004820152601260248201527108e948c865ec4c2ce5ad2dcd2e85ac2eae8d60731b604482015290519081900360640190fd5b6000816001600160a01b03166376d8b1176040518163ffffffff1660e01b815260040160206040518083038186803b15801561019e57600080fd5b505afa1580156101b2573d6000803e3d6000fd5b505050506040513d60208110156101c857600080fd5b50516040805163dfe0503160e01b815290519192506001600160a01b038084169263095ea7b3929186169163dfe05031916004808301926020929190829003018186803b15801561021857600080fd5b505afa15801561022c573d6000803e3d6000fd5b505050506040513d602081101561024257600080fd5b5051604080516001600160e01b031960e085901b1681526001600160a01b03909216600483015260001960248301525160448083019260209291908290030181600087803b15801561029357600080fd5b505af11580156102a7573d6000803e3d6000fd5b505050506040513d60208110156102bd57600080fd5b50505050565b6000546001600160a01b03163314610317576040805162461bcd60e51b815260206004820152601260248201527108e948c865ec4c2ce5acaf0d2e85ac2eae8d60731b604482015290519081900360640190fd5b60015461032a818363ffffffff61065b16565b600155610336856106a6565b6103a682866001600160a01b03166376d8b1176040518163ffffffff1660e01b815260040160206040518083038186803b15801561037357600080fd5b505afa158015610387573d6000803e3d6000fd5b505050506040513d602081101561039d57600080fd5b50518584610777565b846001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156103ec57600080fd5b505af1158015610400573d6000803e3d6000fd5b50505050836001600160a01b031663a9059cbb84846040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561046457600080fd5b505af1158015610478573d6000803e3d6000fd5b505050506040513d602081101561048e57600080fd5b50516104e1576040805162461bcd60e51b815260206004820152601860248201527f474a46432f6261672d6661696c65642d7472616e736665720000000000000000604482015290519081900360640190fd5b5050505050565b6000546001600160a01b031681565b6000546001600160a01b0316331461054b576040805162461bcd60e51b815260206004820152601260248201527108e948c865ec4c2ce5ad4ded2dc5ac2eae8d60731b604482015290519081900360640190fd5b60015461055e908263ffffffff6108fa16565b60015561056a836106a6565b816001600160a01b031663095ea7b384836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156105ca57600080fd5b505af11580156105de573d6000803e3d6000fd5b505050506040513d60208110156105f457600080fd5b50506040805163b6b55f2560e01b81526004810183905290516001600160a01b0385169163b6b55f2591602480830192600092919082900301818387803b15801561063e57600080fd5b505af1158015610652573d6000803e3d6000fd5b50505050505050565b600061069d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610954565b90505b92915050565b6000816001600160a01b031663075461726040518163ffffffff1660e01b815260040160206040518083038186803b1580156106e157600080fd5b505afa1580156106f5573d6000803e3d6000fd5b505050506040513d602081101561070b57600080fd5b5051604080516335313c2160e11b81526001600160a01b038581166004830152915192935090831691636a6278429160248082019260009290919082900301818387803b15801561075b57600080fd5b505af115801561076f573d6000803e3d6000fd5b505050505050565b600061081b8261080f87876001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156107d757600080fd5b505afa1580156107eb573d6000803e3d6000fd5b505050506040513d602081101561080157600080fd5b50519063ffffffff6109eb16565b9063ffffffff610a4416565b9050836001600160a01b031663a9059cbb84836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561087d57600080fd5b505af1158015610891573d6000803e3d6000fd5b505050506040513d60208110156108a757600080fd5b50516104e1576040805162461bcd60e51b815260206004820152601860248201527f474a46432f6261672d6661696c65642d746b6e2d7472616e0000000000000000604482015290519081900360640190fd5b60008282018381101561069d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600081848411156109e35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109a8578181015183820152602001610990565b50505050905090810190601f1680156109d55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000826109fa575060006106a0565b82820282848281610a0757fe5b041461069d5760405162461bcd60e51b8152600401808060200182810382526021815260200180610ae76021913960400191505060405180910390fd5b600061069d83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060008183610ad05760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156109a8578181015183820152602001610990565b506000838581610adc57fe5b049594505050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a723158204eb8bb0f3212d2efec419345930702f875dab393305226b8e6fdd0d8e863839264736f6c634300050c0032a265627a7a7231582072dcafbeddda0608993361706288c17288ceeb547ced6ba19d47cc16c915887164736f6c634300050c0032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000694532928af9288f83aacba5b932caf51fec22d54352565f33504f4f4c2d42000000000000000000000000000000000000000000000000000000000000000000bfcf63294ad7105dea65aa58f8ae5be2d9d0952a0000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : vat_ (address): 0x694532928Af9288F83AACBa5B932caf51fEC22d5
Arg [1] : ilk_ (bytes32): 0x4352565f33504f4f4c2d42000000000000000000000000000000000000000000
Arg [2] : curveGauge_ (address): 0xbFcF63294aD7105dEa65aA58F8AE5BE2D9d0952A
Arg [3] : (bool): False
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000694532928af9288f83aacba5b932caf51fec22d5
Arg [1] : 4352565f33504f4f4c2d42000000000000000000000000000000000000000000
Arg [2] : 000000000000000000000000bfcf63294ad7105dea65aa58f8ae5be2d9d0952a
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
23959:2467:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23959:2467:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24505:28;;;:::i;:::-;;;-1:-1:-1;;;;;24505:28:0;;;;;;;;;;;;;;24398:18;;;:::i;25549:486::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;25549:486:0;;;;;;;;:::i;:::-;;24606:30;;;:::i;:::-;;;;;;;;;;;;;;;24115:79;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24115:79:0;-1:-1:-1;;;;;24115:79:0;;:::i;25479:62::-;;;:::i;24481:17::-;;;:::i;24645:39::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24645:39:0;-1:-1:-1;;;;;24645:39:0;;:::i;24565:19::-;;;:::i;24202:79::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24202:79:0;-1:-1:-1;;;;;24202:79:0;;:::i;24540:18::-;;;:::i;24066:40::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24066:40:0;-1:-1:-1;;;;;24066:40:0;;:::i;24437:18::-;;;:::i;26043:380::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;26043:380:0;;;;;;;;:::i;24505:28::-;;;-1:-1:-1;;;;;24505:28:0;;:::o;24398:18::-;;;-1:-1:-1;;;;;24398:18:0;;:::o;25549:486::-;25622:4;;25630:1;25622:9;25614:35;;;;-1:-1:-1;;;25614:35:0;;;;;;;;;;;;-1:-1:-1;;;25614:35:0;;;;;;;;;;;;;;25683:1;25675:3;25668:16;;25660:42;;;;-1:-1:-1;;;25660:42:0;;;;;;;;;;;;-1:-1:-1;;;25660:42:0;;;;;;;;;;;;;;25713:3;;25722;;-1:-1:-1;;;;;25713:3:0;;;;:8;;25727:3;25739;25713:31;;-1:-1:-1;;;;;;25713:31:0;;;;;;;;;;;;;;-1:-1:-1;;;;;25713:31:0;;;;;;;;;;;;;-1:-1:-1;25713:31:0;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25713:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;25773:15:0;;:24;;-1:-1:-1;25773:15:0;-1:-1:-1;25793:3:0;25773:24;:19;:24;:::i;:::-;25755:15;:42;25810:11;25824:19;25832:10;25824:7;:19::i;:::-;25878:3;;25810:33;;-1:-1:-1;;;;;;25878:3:0;:16;25895:10;25810:33;25912:3;25878:38;;-1:-1:-1;;;;;;25878:38:0;;;;;;;-1:-1:-1;;;;;25878:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25878:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;25878:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;25878:38:0;;;;;;;-1:-1:-1;25856:108:0;;-1:-1:-1;;25856:108:0;;;-1:-1:-1;;;25856:108:0;;;;;;;;;;;;-1:-1:-1;;;25856:108:0;;;;;;;;;;;;;;25997:10;;26017:3;;-1:-1:-1;;;;;25977:19:0;;;;;;25997:10;;;;26017:3;26023;25977:50;;-1:-1:-1;;;;;;25977:50:0;;;;;;;-1:-1:-1;;;;;25977:50:0;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25977:50:0;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25977:50:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;25977:50:0;;;;1085:1;1283:7;1357:3;1351:4;1347:14;1341:4;1334:28;1419:4;1413;1406:18;1488:3;1481:4;1475;1471:15;1464:28;1562:3;1559:1;1552:4;1546;1542:15;1529:37;1838:2;1825:16;1796:1;1783:15;1742:8;-1:-1:-1;;;;;;1708:1:0;1695:15;1677:35;1643:3;1620:4;1597:267;1106:769;;;:::o;24606:30::-;;;;:::o;24115:79::-;24328:10;24322:5;:17;;;;;;;;;;;24343:1;24322:22;24314:54;;;;-1:-1:-1;;;24314:54:0;;;;;;;;;;;;-1:-1:-1;;;24314:54:0;;;;;;;;;;;;;;-1:-1:-1;;;;;24172:10:0;;:5;:10;;;;;;;24185:1;;24172:10;;;:14;1283:7;1357:3;1351:4;1347:14;1341:4;1334:28;1419:4;1413;1406:18;1488:3;1481:4;1475;1471:15;1464:28;1562:3;1559:1;1552:4;1546;1542:15;1529:37;1838:2;1825:16;1796:1;1783:15;1742:8;-1:-1:-1;;;;;;1708:1:0;1695:15;1677:35;1643:3;1620:4;1597:267;1106:769;;:::o;25479:62::-;24328:10;24322:5;:17;;;;;;;;;;;24343:1;24322:22;24314:54;;;;-1:-1:-1;;;24314:54:0;;;;;;;;;;;;-1:-1:-1;;;24314:54:0;;;;;;;;;;;;;;25532:1;25525:4;:8;1283:7;1357:3;1351:4;1347:14;1341:4;1334:28;1419:4;1413;1406:18;1488:3;1481:4;1475;1471:15;1464:28;1562:3;1559:1;1552:4;1546;1542:15;1529:37;1838:2;1825:16;1796:1;1783:15;1742:8;-1:-1:-1;;;;;;1708:1:0;1695:15;1677:35;1643:3;1620:4;1597:267;1106:769;:::o;24481:17::-;;;-1:-1:-1;;;;;24481:17:0;;:::o;24645:39::-;;;;;;;;;;;-1:-1:-1;;;;;24645:39:0;;-1:-1:-1;24645:39:0;:::o;24565:19::-;;;;:::o;24202:79::-;24328:10;24322:5;:17;;;;;;;;;;;24343:1;24322:22;24314:54;;;;-1:-1:-1;;;24314:54:0;;;;;;;;;;;;-1:-1:-1;;;24314:54:0;;;;;;;;;;;;;;-1:-1:-1;;;;;24259:10:0;;24272:1;24259:10;;;;;;;;24272:1;24259:10;:14;1283:7;1357:3;1351:4;1347:14;1341:4;1334:28;1419:4;1413;1406:18;1488:3;1481:4;1475;1471:15;1464:28;1562:3;1559:1;1552:4;1546;1542:15;1529:37;1838:2;1825:16;1796:1;1783:15;1742:8;-1:-1:-1;;;;;;1708:1:0;1695:15;1677:35;1643:3;1620:4;1597:267;1106:769;;:::o;24540:18::-;;;;:::o;24066:40::-;;;;;;;;;;;;-1:-1:-1;24066:40:0;:::o;24437:18::-;;;;:::o;26043:380::-;-1:-1:-1;;;26116:3:0;:13;;26108:39;;;;-1:-1:-1;;;26108:39:0;;;;;;;;;;;;-1:-1:-1;;;26108:39:0;;;;;;;;;;;;;;26158:3;;26167;;-1:-1:-1;;;;;26158:3:0;;;;:8;;26172:10;26158:3;26184:12;;;26158:39;;-1:-1:-1;;;;;;26158:39:0;;;;;;;;;;;;;;-1:-1:-1;;;;;26158:39:0;;;;;;;;;;;;;-1:-1:-1;26158:39:0;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26158:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;26226:15:0;;:24;;-1:-1:-1;26226:15:0;-1:-1:-1;26246:3:0;26226:24;:19;:24;:::i;:::-;26208:15;:42;26282:10;26263:11;26277:16;;;:4;:16;;;26263:11;26277:16;;-1:-1:-1;;;;;26277:16:0;;-1:-1:-1;26312:17:0;26304:43;;;;-1:-1:-1;;;26304:43:0;;;;;;;;;;;;-1:-1:-1;;;26304:43:0;;;;;;;;;;;;;;26380:10;;26400:3;;-1:-1:-1;;;;;26360:19:0;;;;;;26380:10;;;;26400:3;26406;26411;26360:55;;-1:-1:-1;;;;;;26360:55:0;;;;;;;-1:-1:-1;;;;;26360:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26360:55:0;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;6142:181:0;6200:7;6232:5;;;6256:6;;;;6248:46;;;;-1:-1:-1;;;6248:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;6314:1;6142:181;-1:-1:-1;;;6142:181:0:o;25161:310::-;-1:-1:-1;;;;;25238:10:0;;25210:11;25238:10;;;:4;:10;;25210:11;25238:10;25210:11;25238:10;;-1:-1:-1;;;;;25238:10:0;:24;25234:230;;-1:-1:-1;;;;;25285:10:0;;;;;;:4;:10;;;;;;-1:-1:-1;;;;;25285:10:0;;-1:-1:-1;25234:230:0;;;25328:11;25342:15;;;;;:::i;:::-;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;25379:10:0;;25328:29;;-1:-1:-1;;;;;;25372:6:0;;;;;;25379:10;25372:18;;-1:-1:-1;;;;;;25372:18:0;;;;;;;-1:-1:-1;;;;;25372:18:0;;;;;;;;;-1:-1:-1;25372:18:0;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25372:18:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;;;;;;;25436:10:0;;;;;;:4;:10;;25419:1;;-1:-1:-1;25419:1:0;;;;-1:-1:-1;25436:10:0;;;:16;;-1:-1:-1;;;;;;25436:16:0;-1:-1:-1;;;;;25436:16:0;;;;;;;;;;-1:-1:-1;25234:230:0;25161:310;;;:::o;6598:136::-;6656:7;6683:43;6687:1;6690;6683:43;;;;;;;;;;;;;;;;7157:7;7193:12;7185:6;;;;7177:29;;;;-1:-1:-1;;;7177:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;7177:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;7229:5:0;;;7071:192::o;23959:2467::-;;;;;;;;:::o
Swarm Source
bzzr://72dcafbeddda0608993361706288c17288ceeb547ced6ba19d47cc16c9158871
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.