Source Code
Latest 25 from a total of 89 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Deposit Buy Dbr ... | 18232273 | 916 days ago | IN | 0 ETH | 0.00843693 | ||||
| Deposit Buy Dbr ... | 18222139 | 918 days ago | IN | 0 ETH | 0.01449427 | ||||
| Deposit Buy Dbr ... | 18221169 | 918 days ago | IN | 0 ETH | 0.02042513 | ||||
| Deposit Buy Dbr ... | 18220661 | 918 days ago | IN | 0 ETH | 0.02187915 | ||||
| Deposit Buy Dbr ... | 18213920 | 919 days ago | IN | 0 ETH | 0.02527615 | ||||
| Deposit Native E... | 18125669 | 931 days ago | IN | 0.5 ETH | 0.00173085 | ||||
| Deposit Native E... | 18061501 | 940 days ago | IN | 1.4 ETH | 0.00088221 | ||||
| Deposit Native E... | 18011646 | 947 days ago | IN | 1.3 ETH | 0.00102352 | ||||
| Deposit Native E... | 17975240 | 952 days ago | IN | 0.7 ETH | 0.00112991 | ||||
| Deposit Native E... | 17969374 | 953 days ago | IN | 1.7 ETH | 0.00192114 | ||||
| Deposit Buy Dbr ... | 17967625 | 953 days ago | IN | 0 ETH | 0.01686427 | ||||
| Deposit Buy Dbr ... | 17967619 | 953 days ago | IN | 0 ETH | 0.00725037 | ||||
| Buy Dbr And Borr... | 17921141 | 960 days ago | IN | 0 ETH | 0.01774907 | ||||
| Buy Dbr And Borr... | 17914835 | 961 days ago | IN | 0 ETH | 0.01737251 | ||||
| Buy Dbr And Borr... | 17914709 | 961 days ago | IN | 0 ETH | 0.01905597 | ||||
| Deposit Native E... | 17912447 | 961 days ago | IN | 0.55 ETH | 0.00104265 | ||||
| Sell Dbr Repay A... | 17843767 | 971 days ago | IN | 0 ETH | 0.01060563 | ||||
| Buy Dbr And Borr... | 17834636 | 972 days ago | IN | 0 ETH | 0.01493736 | ||||
| Deposit Buy Dbr ... | 17820788 | 974 days ago | IN | 0 ETH | 0.03543678 | ||||
| Sell Dbr And Rep... | 17816433 | 974 days ago | IN | 0 ETH | 0.01083259 | ||||
| Deposit Buy Dbr ... | 17816057 | 974 days ago | IN | 0 ETH | 0.03309891 | ||||
| Deposit Buy Dbr ... | 17814431 | 975 days ago | IN | 0 ETH | 0.04708133 | ||||
| Deposit Buy Dbr ... | 17809740 | 975 days ago | IN | 0 ETH | 0.01288002 | ||||
| Sell Dbr And Rep... | 17808200 | 976 days ago | IN | 0 ETH | 0.02444557 | ||||
| Deposit Buy Dbr ... | 17788163 | 978 days ago | IN | 0 ETH | 0.0143584 |
Latest 19 internal transactions
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Deposit | 18125669 | 931 days ago | 0.5 ETH | ||||
| Deposit | 18061501 | 940 days ago | 1.4 ETH | ||||
| Deposit | 18011646 | 947 days ago | 1.3 ETH | ||||
| Deposit | 17975240 | 952 days ago | 0.7 ETH | ||||
| Deposit | 17969374 | 953 days ago | 1.7 ETH | ||||
| Deposit | 17912447 | 961 days ago | 0.55 ETH | ||||
| Deposit | 17771315 | 981 days ago | 16 ETH | ||||
| Transfer | 17672620 | 995 days ago | 16 ETH | ||||
| Transfer | 17672620 | 995 days ago | 16 ETH | ||||
| Deposit | 17665846 | 996 days ago | 0.75 ETH | ||||
| Deposit | 17664595 | 996 days ago | 16 ETH | ||||
| Deposit | 17366416 | 1038 days ago | 15 ETH | ||||
| Deposit | 17339031 | 1041 days ago | 16.5 ETH | ||||
| Deposit | 17331412 | 1043 days ago | 15 ETH | ||||
| Transfer | 17310704 | 1045 days ago | 43.69 ETH | ||||
| Transfer | 17310704 | 1045 days ago | 43.69 ETH | ||||
| Deposit | 17246564 | 1055 days ago | 2.7 ETH | ||||
| Deposit | 17242413 | 1055 days ago | 2.84 ETH | ||||
| Deposit | 17242277 | 1055 days ago | 10 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
CurveHelper
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.13;
import "src/util/OffchainAbstractHelper.sol";
interface ICurvePool {
function coins(uint index) external view returns(address);
function get_dy(uint i, uint j, uint dx) external view returns(uint);
function exchange(uint i, uint j, uint dx, uint min_dy, bool use_eth) external payable returns(uint);
function exchange(uint i, uint j, uint dx, uint min_dy, bool use_eth, address receiver) external payable returns(uint);
}
contract CurveHelper is OffchainAbstractHelper{
ICurvePool public immutable curvePool;
uint dbrIndex;
uint dolaIndex;
constructor(address _pool) {
curvePool = ICurvePool(_pool);
DOLA.approve(_pool, type(uint).max);
DBR.approve(_pool, type(uint).max);
if(ICurvePool(_pool).coins(0) == address(DOLA)){
dolaIndex = 0;
dbrIndex = 1;
} else {
dolaIndex = 1;
dbrIndex = 0;
}
}
/**
@notice Sells an exact amount of DBR for DOLA in a curve pool
@param amount Amount of DBR to sell
@param minOut minimum amount of DOLA to receive
*/
function _sellDbr(uint amount, uint minOut) internal override {
if(amount > 0){
curvePool.exchange(dbrIndex, dolaIndex, amount, minOut, false);
}
}
/**
@notice Buys an exact amount of DBR for DOLA in a curve pool
@param amount Amount of DOLA to sell
@param minOut minimum amount of DBR out
*/
function _buyDbr(uint amount, uint minOut, address receiver) internal override {
if(amount > 0) {
curvePool.exchange(dolaIndex, dbrIndex, amount, minOut, false, receiver);
}
}
/**
@notice Approximates the total amount of dola and dbr needed to borrow a dolaBorrowAmount while also borrowing enough to buy the DBR needed to cover for the borrowing period
@dev Uses a binary search to approximate the amounts needed. Should only be called as part of generating transaction parameters.
@param dolaBorrowAmount Amount of dola the user wishes to end up with
@param period Amount of time in seconds the loan will last
@param iterations Number of approximation iterations. The higher the more precise the result
*/
function approximateDolaAndDbrNeeded(uint dolaBorrowAmount, uint period, uint iterations) public view override returns(uint dolaForDbr, uint dbrNeeded){
uint amountIn = dolaBorrowAmount;
uint stepSize = amountIn / 2;
uint dbrReceived = curvePool.get_dy(dolaIndex, dbrIndex, amountIn);
uint dbrToBuy = (amountIn + dolaBorrowAmount) * period / 365 days;
uint dist = dbrReceived > dbrToBuy ? dbrReceived - dbrToBuy : dbrToBuy - dbrReceived;
for(uint i; i < iterations; ++i){
uint newAmountIn = amountIn;
if(dbrReceived > dbrToBuy){
newAmountIn -= stepSize;
} else {
newAmountIn += stepSize;
}
uint newDbrReceived = curvePool.get_dy(dolaIndex, dbrIndex, newAmountIn);
uint newDbrToBuy = (newAmountIn + dolaBorrowAmount) * period / 365 days;
uint newDist = newDbrReceived > newDbrToBuy ? newDbrReceived - newDbrToBuy : newDbrToBuy - newDbrReceived;
if(newDist < dist){
dbrReceived = newDbrReceived;
dbrToBuy = newDbrToBuy;
dist = newDist;
amountIn = newAmountIn;
}
stepSize /= 2;
}
return (amountIn, (dolaBorrowAmount + amountIn) * period / 365 days);
}
}pragma solidity ^0.8.13;
interface IMarket {
function borrowOnBehalf(address msgSender, uint dolaAmount, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
function withdrawOnBehalf(address msgSender, uint amount, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
function deposit(address msgSender, uint collateralAmount) external;
function repay(address msgSender, uint amount) external;
function collateral() external returns(address);
function debts(address user) external returns(uint);
function recall(uint amount) external;
function totalDebt() external view returns (uint);
function borrowPaused() external view returns (bool);
}pragma solidity ^0.8.13;
import "../interfaces/IMarket.sol";
interface IERC20 {
function transfer(address to, uint amount) external;
function transferFrom(address from, address to, uint amount) external;
function approve(address to, uint amount) external;
function balanceOf(address user) external view returns(uint);
}
interface IWETH is IERC20 {
function withdraw(uint wad) external;
function deposit() external payable;
}
abstract contract OffchainAbstractHelper {
IERC20 constant DOLA = IERC20(0x865377367054516e17014CcdED1e7d814EDC9ce4);
IERC20 constant DBR = IERC20(0xAD038Eb671c44b853887A7E32528FaB35dC5D710);
IWETH constant WETH = IWETH(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
/**
Virtual functions implemented by the AMM interfacing part of the Helper contract
*/
/**
@notice Buys DBR for an amount of Dola
@param amount Amount of Dola to spend on DBR
@param minOut minimum amount of DBR to receive
*/
function _buyDbr(uint amount, uint minOut, address receiver) internal virtual;
/**
@notice Sells an exact amount of DBR for DOLA
@param amount Amount of DBR to sell
@param minOut minimum amount of DOLA to receive
*/
function _sellDbr(uint amount, uint minOut) internal virtual;
/**
@notice Approximates the amount of additional DOLA and DBR needed to sustain dolaBorrowAmount over the period
@dev Larger number of iterations increases both accuracy of the approximation and gas cost. This method should not be called in smart contract code.
@param dolaBorrowAmount The amount of DOLA the user wishes to borrow before covering DBR expenses
@param minDbr The amount of seconds the user wish to borrow the DOLA for
@param iterations The amount of approximation iterations.
@return Tuple of (dolaNeeded, dbrNeeded) representing the total dola needed to pay for the DBR and pay out dolaBorrowAmount and the dbrNeeded to sustain the loan over the period
*/
function approximateDolaAndDbrNeeded(uint dolaBorrowAmount, uint minDbr, uint iterations) public view virtual returns(uint, uint);
/**
@notice Borrows on behalf of the caller, buying the necessary DBR to pay for the loan over the period, by borrowing aditional funds to pay for the necessary DBR
@dev Has to borrow the dolaForDbr amount due to how the market's borrowOnBehalf functions, and repay the excess at the end of the call resulting in a weird repay event
@param market Market the caller wishes to borrow from
@param dolaAmount Amount the caller wants to end up with at their disposal
@param dolaForDbr The max amount of debt the caller is willing to end up with
This is a sensitive parameter and should be reasonably low to prevent sandwhiching.
A good estimate can be calculated given the approximateDolaAndDbrNeeded function, though should be set slightly higher.
@param minDbr The minDbr the caller wish to borrow for
@param deadline Deadline of the signature
@param v V parameter of the signature
@param r R parameter of the signature
@param s S parameter of the signature
*/
function buyDbrAndBorrowOnBehalf(
IMarket market,
uint dolaAmount,
uint dolaForDbr,
uint minDbr,
uint deadline,
uint8 v,
bytes32 r,
bytes32 s)
public
{
//Borrow Dola
uint totalBorrow = dolaAmount + dolaForDbr;
market.borrowOnBehalf(msg.sender, totalBorrow, deadline, v, r, s);
//Buy DBR
_buyDbr(dolaForDbr, minDbr, msg.sender);
//Transfer remaining DOLA amount to user
DOLA.transfer(msg.sender, dolaAmount);
}
/**
@notice Deposits collateral and borrows on behalf of the caller, buying the necessary DBR to pay for the loan over the period, by borrowing aditional funds to pay for the necessary DBR
@dev Has to borrow the dolaForDbr amount due to how the market's borrowOnBehalf functions, and repay the excess at the end of the call resulting in a weird repay event
@param market Market the caller wish to deposit to and borrow from
@param dolaAmount Amount the caller wants to end up with at their disposal
@param dolaForDbr The max amount of debt the caller is willing to take on to buy dbr
This is a sensitive parameter and should be reasonably low to prevent sandwhiching.
A good estimate can be calculated given the approximateDolaAndDbrNeeded function, though should be set slightly higher.
@param minDbr The minDbr the caller wish to borrow for
@param deadline Deadline of the signature
@param v V parameter of the signature
@param r R parameter of the signature
@param s S parameter of the signature
*/
function depositBuyDbrAndBorrowOnBehalf(
IMarket market,
uint collateralAmount,
uint dolaAmount,
uint dolaForDbr,
uint minDbr,
uint deadline,
uint8 v,
bytes32 r,
bytes32 s)
public
{
IERC20 collateral = IERC20(market.collateral());
//Deposit collateral
collateral.transferFrom(msg.sender, address(this), collateralAmount);
collateral.approve(address(market), collateralAmount);
market.deposit(msg.sender, collateralAmount);
//Borrow dola and buy dbr
buyDbrAndBorrowOnBehalf(market, dolaAmount, dolaForDbr, minDbr, deadline, v, r , s);
}
/**
@notice Deposits native eth as collateral and borrows on behalf of the caller,
buying the necessary DBR to pay for the loan over the period, by borrowing aditional funds to pay for the necessary DBR
@dev Has to borrow the dolaForDbr amount due to how the market's borrowOnBehalf functions, and repay the excess at the end of the call resulting in a weird repay event
@param market Market the caller wish to deposit to and borrow from
@param dolaAmount Amount the caller wants to end up with at their disposal
@param dolaForDbr The max amount of debt the caller is willing to end up with
This is a sensitive parameter and should be reasonably low to prevent sandwhiching.
A good estimate can be calculated given the approximateDolaAndDbrNeeded function, though should be set slightly higher.
@param minDbr The minDbr the caller wish to borrow for
@param deadline Deadline of the signature
@param v V parameter of the signature
@param r R parameter of the signature
@param s S parameter of the signature
*/
function depositNativeEthBuyDbrAndBorrowOnBehalf(
IMarket market,
uint dolaAmount,
uint dolaForDbr,
uint minDbr,
uint deadline,
uint8 v,
bytes32 r,
bytes32 s)
public payable
{
IERC20 collateral = IERC20(market.collateral());
require(address(collateral) == address(WETH), "Market is not an ETH market");
WETH.deposit{value:msg.value}();
//Deposit collateral
collateral.approve(address(market), msg.value);
market.deposit(msg.sender, msg.value);
//Borrow dola and buy dbr
buyDbrAndBorrowOnBehalf(market, dolaAmount, dolaForDbr, minDbr, deadline, v, r , s);
}
/**
@notice Sells DBR on behalf of the caller and uses the proceeds along with DOLA from the caller to repay debt.
@dev The caller is unlikely to spend all of the DOLA they make available for the function call
@param market The market the user wishes to repay debt in
@param dolaAmount The maximum amount of dola debt the user is willing to repay
@param minDolaFromDbr The minimum amount of DOLA the caller expects to get in return for selling their DBR.
This is a sensitive parameter and should be provided with reasonably low slippage to prevent sandwhiching.
@param dbrAmountToSell The amount of DBR the caller wishes to sell
*/
function sellDbrAndRepayOnBehalf(IMarket market, uint dolaAmount, uint minDolaFromDbr, uint dbrAmountToSell) public {
uint dbrBal = DBR.balanceOf(msg.sender);
//If user has less DBR than ordered, sell what's available
if(dbrAmountToSell > dbrBal){
DBR.transferFrom(msg.sender, address(this), dbrBal);
_sellDbr(dbrBal, minDolaFromDbr);
} else {
DBR.transferFrom(msg.sender, address(this), dbrAmountToSell);
_sellDbr(dbrAmountToSell, minDolaFromDbr);
}
uint debt = market.debts(msg.sender);
uint dolaBal = DOLA.balanceOf(address(this));
//If the debt is lower than the dolaAmount, repay debt else repay dolaAmount
uint repayAmount = debt < dolaAmount ? debt : dolaAmount;
//If dolaBal is less than repayAmount, transfer remaining DOLA from user, otherwise transfer excess dola to user
if(dolaBal < repayAmount){
DOLA.transferFrom(msg.sender, address(this), repayAmount - dolaBal);
} else {
DOLA.transfer(msg.sender, dolaBal - repayAmount);
}
//Repay repayAmount
DOLA.approve(address(market), repayAmount);
market.repay(msg.sender, repayAmount);
}
/**
@notice Sells DBR on behalf of the caller and uses the proceeds along with DOLA from the caller to repay debt, and then withdraws collateral
@dev The caller is unlikely to spend all of the DOLA they make available for the function call
@param market Market the user wishes to repay debt in
@param dolaAmount Maximum amount of dola debt the user is willing to repay
@param minDolaFromDbr Minimum amount of DOLA the caller expects to get in return for selling their DBR
This is a sensitive parameter and should be provided with reasonably low slippage to prevent sandwhiching.
@param dbrAmountToSell Amount of DBR the caller wishes to sell
@param collateralAmount Amount of collateral to withdraw
@param deadline Deadline of the signature
@param v V parameter of the signature
@param r R parameter of the signature
@param s S parameter of the signature
*/
function sellDbrRepayAndWithdrawOnBehalf(
IMarket market,
uint dolaAmount,
uint minDolaFromDbr,
uint dbrAmountToSell,
uint collateralAmount,
uint deadline,
uint8 v,
bytes32 r,
bytes32 s)
external
{
//Repay
sellDbrAndRepayOnBehalf(market, dolaAmount, minDolaFromDbr, dbrAmountToSell);
//Withdraw
market.withdrawOnBehalf(msg.sender, collateralAmount, deadline, v, r, s);
//Transfer collateral to msg.sender
IERC20(market.collateral()).transfer(msg.sender, collateralAmount);
}
/**
@notice Sells DBR on behalf of the caller and uses the proceeds along with DOLA from the caller to repay debt, and then withdraws collateral
@dev The caller is unlikely to spend all of the DOLA they make available for the function call
@param market Market the user wishes to repay debt in
@param dolaAmount Maximum amount of dola debt the user is willing to repay
@param minDolaFromDbr Minimum amount of DOLA the caller expects to get in return for selling their DBR
This is a sensitive parameter and should be provided with reasonably low slippage to prevent sandwhiching.
@param dbrAmountToSell Amount of DBR the caller wishes to sell
@param collateralAmount Amount of collateral to withdraw
@param deadline Deadline of the signature
@param v V parameter of the signature
@param r R parameter of the signature
@param s S parameter of the signature
*/
function sellDbrRepayAndWithdrawNativeEthOnBehalf(
IMarket market,
uint dolaAmount,
uint minDolaFromDbr,
uint dbrAmountToSell,
uint collateralAmount,
uint deadline,
uint8 v,
bytes32 r,
bytes32 s)
external
{
//Repay
sellDbrAndRepayOnBehalf(market, dolaAmount, minDolaFromDbr, dbrAmountToSell);
//Withdraw
withdrawNativeEthOnBehalf(market, collateralAmount, deadline, v, r, s);
}
/**
@notice Repays debt, and then withdraws native ETH
@dev The caller is unlikely to spend all of the DOLA they make available for the function call
@param market Market the user wishes to repay debt in
@param dolaAmount Amount of dola debt the user is willing to repay
@param collateralAmount Amount of collateral to withdraw
@param deadline Deadline of the signature
@param v V parameter of the signature
@param r R parameter of the signature
@param s S parameter of the signature
*/
function repayAndWithdrawNativeEthOnBehalf(
IMarket market,
uint dolaAmount,
uint collateralAmount,
uint deadline,
uint8 v,
bytes32 r,
bytes32 s)
external
{
// Repay
DOLA.transferFrom(msg.sender, address(this), dolaAmount);
DOLA.approve(address(market), dolaAmount);
market.repay(msg.sender, dolaAmount);
// Withdraw
withdrawNativeEthOnBehalf(market, collateralAmount, deadline, v, r, s);
}
/**
@notice Helper function for depositing native eth to WETH markets
@param market The WETH market to deposit to
*/
function depositNativeEthOnBehalf(IMarket market) public payable {
require(address(market.collateral()) == address(WETH), "Not an ETH market");
WETH.deposit{value:msg.value}();
WETH.approve(address(market), msg.value);
market.deposit(msg.sender, msg.value);
}
/**
@notice Helper function for depositing native eth to WETH markets before borrowing on behalf of the depositor
@param market The WETH market to deposit to
@param borrowAmount The amount to borrow on behalf of the depositor
@param deadline Deadline of the signature
@param v V parameter of the signature
@param r R parameter of the signature
@param s S parameter of the signature
*/
function depositNativeEthAndBorrowOnBehalf(IMarket market, uint borrowAmount, uint deadline, uint8 v, bytes32 r, bytes32 s) public payable {
require(address(market.collateral()) == address(WETH), "Not an ETH market");
//Deposit native eth
WETH.deposit{value:msg.value}();
WETH.approve(address(market), msg.value);
market.deposit(msg.sender, msg.value);
//Borrow Dola
market.borrowOnBehalf(msg.sender, borrowAmount, deadline, v, r, s);
DOLA.transfer(msg.sender, borrowAmount);
}
/**
@notice Helper function for withdrawing to native eth
@param market WETH market to withdraw collateral from
@param collateralAmount Amount of collateral to withdraw
@param deadline Deadline of the signature
@param v V parameter of the signature
@param r R parameter of the signature
@param s S parameter of the signature
*/
function withdrawNativeEthOnBehalf(
IMarket market,
uint collateralAmount,
uint deadline,
uint8 v,
bytes32 r,
bytes32 s)
public
{
market.withdrawOnBehalf(msg.sender, collateralAmount, deadline, v, r, s);
IERC20 collateral = IERC20(market.collateral());
require(address(collateral) == address(WETH), "Not an ETH market");
WETH.withdraw(collateralAmount);
(bool success,) = payable(msg.sender).call{value:collateralAmount}("");
require(success, "Failed to transfer ETH");
}
//Empty receive function for receiving the native eth sent by the WETH contract
receive() external payable {}
}{
"remappings": [
"ds-test/=lib/solmate/lib/ds-test/src/",
"forge-std/=lib/forge-std/src/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
"solmate/=lib/solmate/src/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"bytecodeHash": "ipfs"
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "london",
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_pool","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"dolaBorrowAmount","type":"uint256"},{"internalType":"uint256","name":"period","type":"uint256"},{"internalType":"uint256","name":"iterations","type":"uint256"}],"name":"approximateDolaAndDbrNeeded","outputs":[{"internalType":"uint256","name":"dolaForDbr","type":"uint256"},{"internalType":"uint256","name":"dbrNeeded","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IMarket","name":"market","type":"address"},{"internalType":"uint256","name":"dolaAmount","type":"uint256"},{"internalType":"uint256","name":"dolaForDbr","type":"uint256"},{"internalType":"uint256","name":"minDbr","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"buyDbrAndBorrowOnBehalf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"curvePool","outputs":[{"internalType":"contract ICurvePool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IMarket","name":"market","type":"address"},{"internalType":"uint256","name":"collateralAmount","type":"uint256"},{"internalType":"uint256","name":"dolaAmount","type":"uint256"},{"internalType":"uint256","name":"dolaForDbr","type":"uint256"},{"internalType":"uint256","name":"minDbr","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"depositBuyDbrAndBorrowOnBehalf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMarket","name":"market","type":"address"},{"internalType":"uint256","name":"borrowAmount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"depositNativeEthAndBorrowOnBehalf","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IMarket","name":"market","type":"address"},{"internalType":"uint256","name":"dolaAmount","type":"uint256"},{"internalType":"uint256","name":"dolaForDbr","type":"uint256"},{"internalType":"uint256","name":"minDbr","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"depositNativeEthBuyDbrAndBorrowOnBehalf","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IMarket","name":"market","type":"address"}],"name":"depositNativeEthOnBehalf","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IMarket","name":"market","type":"address"},{"internalType":"uint256","name":"dolaAmount","type":"uint256"},{"internalType":"uint256","name":"collateralAmount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"repayAndWithdrawNativeEthOnBehalf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMarket","name":"market","type":"address"},{"internalType":"uint256","name":"dolaAmount","type":"uint256"},{"internalType":"uint256","name":"minDolaFromDbr","type":"uint256"},{"internalType":"uint256","name":"dbrAmountToSell","type":"uint256"}],"name":"sellDbrAndRepayOnBehalf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMarket","name":"market","type":"address"},{"internalType":"uint256","name":"dolaAmount","type":"uint256"},{"internalType":"uint256","name":"minDolaFromDbr","type":"uint256"},{"internalType":"uint256","name":"dbrAmountToSell","type":"uint256"},{"internalType":"uint256","name":"collateralAmount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"sellDbrRepayAndWithdrawNativeEthOnBehalf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMarket","name":"market","type":"address"},{"internalType":"uint256","name":"dolaAmount","type":"uint256"},{"internalType":"uint256","name":"minDolaFromDbr","type":"uint256"},{"internalType":"uint256","name":"dbrAmountToSell","type":"uint256"},{"internalType":"uint256","name":"collateralAmount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"sellDbrRepayAndWithdrawOnBehalf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMarket","name":"market","type":"address"},{"internalType":"uint256","name":"collateralAmount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"withdrawNativeEthOnBehalf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60a06040523480156200001157600080fd5b5060405162001ea538038062001ea58339810160408190526200003491620001da565b6001600160a01b038116608081905260405163095ea7b360e01b81526004810191909152600019602482015273865377367054516e17014ccded1e7d814edc9ce49063095ea7b390604401600060405180830381600087803b1580156200009a57600080fd5b505af1158015620000af573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b0384166004820152600019602482015273ad038eb671c44b853887a7e32528fab35dc5d710925063095ea7b39150604401600060405180830381600087803b1580156200011157600080fd5b505af115801562000126573d6000803e3d6000fd5b505060405163c661065760e01b81526000600482015273865377367054516e17014ccded1e7d814edc9ce492506001600160a01b038416915063c661065790602401602060405180830381865afa15801562000186573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001ac9190620001da565b6001600160a01b031603620001ca57600060018181559055620001d3565b60018055600080555b506200020c565b600060208284031215620001ed57600080fd5b81516001600160a01b03811681146200020557600080fd5b9392505050565b608051611c62620002436000396000818160f1015281816113d6015281816114f40152818161172701526117e60152611c626000f3fe6080604052600436106100ab5760003560e01c806382ab11b31161006457806382ab11b3146101905780638e5fa59c146101a3578063b56bcd35146101c3578063b86cb7cb146101e3578063b8b71de114610203578063e4cb99c01461023857600080fd5b80630d7fc7bc146100b75780631d0ef6c0146100cc578063218751b2146100df578063459be986146101305780634879539f14610150578063822c08891461017057600080fd5b366100b257005b600080fd5b6100ca6100c5366004611887565b610258565b005b6100ca6100da3660046118e1565b610517565b3480156100eb57600080fd5b506101137f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561013c57600080fd5b506100ca61014b366004611905565b6106f5565b34801561015c57600080fd5b506100ca61016b366004611940565b610b30565b34801561017c57600080fd5b506100ca61018b366004611887565b610ccb565b6100ca61019e3660046119b9565b610ed7565b3480156101af57600080fd5b506100ca6101be366004611940565b6110ee565b3480156101cf57600080fd5b506100ca6101de366004611940565b611230565b3480156101ef57600080fd5b506100ca6101fe366004611a28565b61124a565b34801561020f57600080fd5b5061022361021e366004611a8d565b611399565b60408051928352602083019190915201610127565b34801561024457600080fd5b506100ca6102533660046119b9565b611625565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316866001600160a01b031663d8dfeb456040518163ffffffff1660e01b81526004016020604051808303816000875af11580156102b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102da9190611ab9565b6001600160a01b0316146103095760405162461bcd60e51b815260040161030090611ad6565b60405180910390fd5b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561035857600080fd5b505af115801561036c573d6000803e3d6000fd5b505060405163095ea7b360e01b815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2935063095ea7b392506103aa915089903490600401611b01565b600060405180830381600087803b1580156103c457600080fd5b505af11580156103d8573d6000803e3d6000fd5b50506040516311f9fbc960e21b81526001600160a01b03891692506347e7ef24915061040a9033903490600401611b01565b600060405180830381600087803b15801561042457600080fd5b505af1158015610438573d6000803e3d6000fd5b5050604051631ef08b7560e01b81526001600160a01b0389169250631ef08b75915061047290339089908990899089908990600401611b1a565b600060405180830381600087803b15801561048c57600080fd5b505af11580156104a0573d6000803e3d6000fd5b505060405163a9059cbb60e01b815273865377367054516e17014ccded1e7d814edc9ce4925063a9059cbb91506104dd9033908990600401611b01565b600060405180830381600087803b1580156104f757600080fd5b505af115801561050b573d6000803e3d6000fd5b50505050505050505050565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316816001600160a01b031663d8dfeb456040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610575573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105999190611ab9565b6001600160a01b0316146105bf5760405162461bcd60e51b815260040161030090611ad6565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561060e57600080fd5b505af1158015610622573d6000803e3d6000fd5b505060405163095ea7b360e01b815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2935063095ea7b39250610660915084903490600401611b01565b600060405180830381600087803b15801561067a57600080fd5b505af115801561068e573d6000803e3d6000fd5b50506040516311f9fbc960e21b81526001600160a01b03841692506347e7ef2491506106c09033903490600401611b01565b600060405180830381600087803b1580156106da57600080fd5b505af11580156106ee573d6000803e3d6000fd5b5050505050565b6040516370a0823160e01b815233600482015260009073ad038eb671c44b853887a7e32528fab35dc5d710906370a0823190602401602060405180830381865afa158015610747573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076b9190611b50565b9050808211156107f1576040516323b872dd60e01b815273ad038eb671c44b853887a7e32528fab35dc5d710906323b872dd906107b090339030908690600401611b69565b600060405180830381600087803b1580156107ca57600080fd5b505af11580156107de573d6000803e3d6000fd5b505050506107ec81846116e0565b610868565b6040516323b872dd60e01b815273ad038eb671c44b853887a7e32528fab35dc5d710906323b872dd9061082c90339030908790600401611b69565b600060405180830381600087803b15801561084657600080fd5b505af115801561085a573d6000803e3d6000fd5b5050505061086882846116e0565b604051632ecd4e7d60e01b81523360048201526000906001600160a01b03871690632ecd4e7d906024016020604051808303816000875af11580156108b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d59190611b50565b6040516370a0823160e01b815230600482015290915060009073865377367054516e17014ccded1e7d814edc9ce4906370a0823190602401602060405180830381865afa15801561092a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094e9190611b50565b9050600086831061095f5786610961565b825b9050808210156109e65773865377367054516e17014ccded1e7d814edc9ce46323b872dd33306109918686611ba3565b6040518463ffffffff1660e01b81526004016109af93929190611b69565b600060405180830381600087803b1580156109c957600080fd5b505af11580156109dd573d6000803e3d6000fd5b50505050610a5b565b73865377367054516e17014ccded1e7d814edc9ce463a9059cbb33610a0b8486611ba3565b6040518363ffffffff1660e01b8152600401610a28929190611b01565b600060405180830381600087803b158015610a4257600080fd5b505af1158015610a56573d6000803e3d6000fd5b505050505b60405163095ea7b360e01b815273865377367054516e17014ccded1e7d814edc9ce49063095ea7b390610a94908b908590600401611b01565b600060405180830381600087803b158015610aae57600080fd5b505af1158015610ac2573d6000803e3d6000fd5b5050604051630450cfaf60e31b81526001600160a01b038b1692506322867d789150610af49033908590600401611b01565b600060405180830381600087803b158015610b0e57600080fd5b505af1158015610b22573d6000803e3d6000fd5b505050505050505050505050565b6000896001600160a01b031663d8dfeb456040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610b72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b969190611ab9565b6040516323b872dd60e01b81529091506001600160a01b038216906323b872dd90610bc990339030908e90600401611b69565b600060405180830381600087803b158015610be357600080fd5b505af1158015610bf7573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b038416925063095ea7b39150610c29908d908d90600401611b01565b600060405180830381600087803b158015610c4357600080fd5b505af1158015610c57573d6000803e3d6000fd5b50506040516311f9fbc960e21b81526001600160a01b038d1692506347e7ef249150610c899033908d90600401611b01565b600060405180830381600087803b158015610ca357600080fd5b505af1158015610cb7573d6000803e3d6000fd5b5050505061050b8a89898989898989611625565b604051633525f59160e01b81526001600160a01b03871690633525f59190610d0190339089908990899089908990600401611b1a565b600060405180830381600087803b158015610d1b57600080fd5b505af1158015610d2f573d6000803e3d6000fd5b505050506000866001600160a01b031663d8dfeb456040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610d75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d999190611ab9565b90506001600160a01b03811673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc214610dd75760405162461bcd60e51b815260040161030090611ad6565b604051632e1a7d4d60e01b81526004810187905273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90602401600060405180830381600087803b158015610e2457600080fd5b505af1158015610e38573d6000803e3d6000fd5b50506040516000925033915088908381818185875af1925050503d8060008114610e7e576040519150601f19603f3d011682016040523d82523d6000602084013e610e83565b606091505b5050905080610ecd5760405162461bcd60e51b815260206004820152601660248201527508cc2d2d8cac840e8de40e8e4c2dce6cccae4408aa8960531b6044820152606401610300565b5050505050505050565b6000886001600160a01b031663d8dfeb456040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610f19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3d9190611ab9565b90506001600160a01b03811673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc214610fab5760405162461bcd60e51b815260206004820152601b60248201527f4d61726b6574206973206e6f7420616e20455448206d61726b657400000000006044820152606401610300565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610ffa57600080fd5b505af115801561100e573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b038516935063095ea7b3925061104191508c903490600401611b01565b600060405180830381600087803b15801561105b57600080fd5b505af115801561106f573d6000803e3d6000fd5b50506040516311f9fbc960e21b81526001600160a01b038c1692506347e7ef2491506110a19033903490600401611b01565b600060405180830381600087803b1580156110bb57600080fd5b505af11580156110cf573d6000803e3d6000fd5b505050506110e38989898989898989611625565b505050505050505050565b6110fa898989896106f5565b604051633525f59160e01b81526001600160a01b038a1690633525f5919061113090339089908990899089908990600401611b1a565b600060405180830381600087803b15801561114a57600080fd5b505af115801561115e573d6000803e3d6000fd5b50505050886001600160a01b031663d8dfeb456040518163ffffffff1660e01b81526004016020604051808303816000875af11580156111a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c69190611ab9565b6001600160a01b031663a9059cbb33876040518363ffffffff1660e01b81526004016111f3929190611b01565b600060405180830381600087803b15801561120d57600080fd5b505af1158015611221573d6000803e3d6000fd5b50505050505050505050505050565b61123c898989896106f5565b6110e3898686868686610ccb565b6040516323b872dd60e01b815273865377367054516e17014ccded1e7d814edc9ce4906323b872dd9061128590339030908b90600401611b69565b600060405180830381600087803b15801561129f57600080fd5b505af11580156112b3573d6000803e3d6000fd5b505060405163095ea7b360e01b815273865377367054516e17014ccded1e7d814edc9ce4925063095ea7b391506112f0908a908a90600401611b01565b600060405180830381600087803b15801561130a57600080fd5b505af115801561131e573d6000803e3d6000fd5b5050604051630450cfaf60e31b81526001600160a01b038a1692506322867d7891506113509033908a90600401611b01565b600060405180830381600087803b15801561136a57600080fd5b505af115801561137e573d6000803e3d6000fd5b50505050611390878686868686610ccb565b50505050505050565b60008084816113a9600283611bba565b6001546000805460405163556d6e9f60e01b815260048101939093526024830152604482018590529192507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063556d6e9f90606401602060405180830381865afa158015611425573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114499190611b50565b905060006301e133808861145d8b87611bdc565b6114679190611bf4565b6114719190611bba565b9050600081831161148b576114868383611ba3565b611495565b6114958284611ba3565b905060005b888110156115ee5785838511156114bc576114b58682611ba3565b90506114c9565b6114c68682611bdc565b90505b6001546000805460405163556d6e9f60e01b81526004810193909352602483015260448201839052907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063556d6e9f90606401602060405180830381865afa158015611543573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115679190611b50565b905060006301e133808d8f8561157d9190611bdc565b6115879190611bf4565b6115919190611bba565b905060008183116115ab576115a68383611ba3565b6115b5565b6115b58284611ba3565b9050858110156115cc578297508196508095508399505b6115d760028a611bba565b985050505050806115e790611c13565b905061149a565b50846301e133808a611600838e611bdc565b61160a9190611bf4565b6116149190611bba565b965096505050505050935093915050565b60006116318789611bdc565b604051631ef08b7560e01b81529091506001600160a01b038a1690631ef08b759061166a90339085908a908a908a908a90600401611b1a565b600060405180830381600087803b15801561168457600080fd5b505af1158015611698573d6000803e3d6000fd5b505050506116a787873361179a565b60405163a9059cbb60e01b815273865377367054516e17014ccded1e7d814edc9ce49063a9059cbb906111f39033908c90600401611b01565b8115611796576000805460015460405163394747c560e01b815260048101929092526024820152604481018490526064810183905260848101919091526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063394747c59060a4016020604051808303816000875af1158015611770573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117949190611b50565b505b5050565b8215611794576001546000805460405163ce7d650360e01b815260048101939093526024830152604482018590526064820184905260848201526001600160a01b0382811660a48301527f0000000000000000000000000000000000000000000000000000000000000000169063ce7d65039060c4016020604051808303816000875af115801561182f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118539190611b50565b50505050565b6001600160a01b038116811461186e57600080fd5b50565b803560ff8116811461188257600080fd5b919050565b60008060008060008060c087890312156118a057600080fd5b86356118ab81611859565b955060208701359450604087013593506118c760608801611871565b92506080870135915060a087013590509295509295509295565b6000602082840312156118f357600080fd5b81356118fe81611859565b9392505050565b6000806000806080858703121561191b57600080fd5b843561192681611859565b966020860135965060408601359560600135945092505050565b60008060008060008060008060006101208a8c03121561195f57600080fd5b893561196a81611859565b985060208a0135975060408a0135965060608a0135955060808a0135945060a08a0135935061199b60c08b01611871565b925060e08a013591506101008a013590509295985092959850929598565b600080600080600080600080610100898b0312156119d657600080fd5b88356119e181611859565b975060208901359650604089013595506060890135945060808901359350611a0b60a08a01611871565b925060c0890135915060e089013590509295985092959890939650565b600080600080600080600060e0888a031215611a4357600080fd5b8735611a4e81611859565b9650602088013595506040880135945060608801359350611a7160808901611871565b925060a0880135915060c0880135905092959891949750929550565b600080600060608486031215611aa257600080fd5b505081359360208301359350604090920135919050565b600060208284031215611acb57600080fd5b81516118fe81611859565b602080825260119082015270139bdd08185b88115512081b585c9ad95d607a1b604082015260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039690961686526020860194909452604085019290925260ff166060840152608083015260a082015260c00190565b600060208284031215611b6257600080fd5b5051919050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015611bb557611bb5611b8d565b500390565b600082611bd757634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115611bef57611bef611b8d565b500190565b6000816000190483118215151615611c0e57611c0e611b8d565b500290565b600060018201611c2557611c25611b8d565b506001019056fea2646970667358221220494e1e616a94181407a8bd16b58b27afde50b4951a6f79ef07522e592319697c64736f6c634300080d0033000000000000000000000000056ef502c1fc5335172bc95ec4cae16c2eb9b5b6
Deployed Bytecode
0x6080604052600436106100ab5760003560e01c806382ab11b31161006457806382ab11b3146101905780638e5fa59c146101a3578063b56bcd35146101c3578063b86cb7cb146101e3578063b8b71de114610203578063e4cb99c01461023857600080fd5b80630d7fc7bc146100b75780631d0ef6c0146100cc578063218751b2146100df578063459be986146101305780634879539f14610150578063822c08891461017057600080fd5b366100b257005b600080fd5b6100ca6100c5366004611887565b610258565b005b6100ca6100da3660046118e1565b610517565b3480156100eb57600080fd5b506101137f000000000000000000000000056ef502c1fc5335172bc95ec4cae16c2eb9b5b681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561013c57600080fd5b506100ca61014b366004611905565b6106f5565b34801561015c57600080fd5b506100ca61016b366004611940565b610b30565b34801561017c57600080fd5b506100ca61018b366004611887565b610ccb565b6100ca61019e3660046119b9565b610ed7565b3480156101af57600080fd5b506100ca6101be366004611940565b6110ee565b3480156101cf57600080fd5b506100ca6101de366004611940565b611230565b3480156101ef57600080fd5b506100ca6101fe366004611a28565b61124a565b34801561020f57600080fd5b5061022361021e366004611a8d565b611399565b60408051928352602083019190915201610127565b34801561024457600080fd5b506100ca6102533660046119b9565b611625565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316866001600160a01b031663d8dfeb456040518163ffffffff1660e01b81526004016020604051808303816000875af11580156102b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102da9190611ab9565b6001600160a01b0316146103095760405162461bcd60e51b815260040161030090611ad6565b60405180910390fd5b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561035857600080fd5b505af115801561036c573d6000803e3d6000fd5b505060405163095ea7b360e01b815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2935063095ea7b392506103aa915089903490600401611b01565b600060405180830381600087803b1580156103c457600080fd5b505af11580156103d8573d6000803e3d6000fd5b50506040516311f9fbc960e21b81526001600160a01b03891692506347e7ef24915061040a9033903490600401611b01565b600060405180830381600087803b15801561042457600080fd5b505af1158015610438573d6000803e3d6000fd5b5050604051631ef08b7560e01b81526001600160a01b0389169250631ef08b75915061047290339089908990899089908990600401611b1a565b600060405180830381600087803b15801561048c57600080fd5b505af11580156104a0573d6000803e3d6000fd5b505060405163a9059cbb60e01b815273865377367054516e17014ccded1e7d814edc9ce4925063a9059cbb91506104dd9033908990600401611b01565b600060405180830381600087803b1580156104f757600080fd5b505af115801561050b573d6000803e3d6000fd5b50505050505050505050565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316816001600160a01b031663d8dfeb456040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610575573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105999190611ab9565b6001600160a01b0316146105bf5760405162461bcd60e51b815260040161030090611ad6565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561060e57600080fd5b505af1158015610622573d6000803e3d6000fd5b505060405163095ea7b360e01b815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2935063095ea7b39250610660915084903490600401611b01565b600060405180830381600087803b15801561067a57600080fd5b505af115801561068e573d6000803e3d6000fd5b50506040516311f9fbc960e21b81526001600160a01b03841692506347e7ef2491506106c09033903490600401611b01565b600060405180830381600087803b1580156106da57600080fd5b505af11580156106ee573d6000803e3d6000fd5b5050505050565b6040516370a0823160e01b815233600482015260009073ad038eb671c44b853887a7e32528fab35dc5d710906370a0823190602401602060405180830381865afa158015610747573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076b9190611b50565b9050808211156107f1576040516323b872dd60e01b815273ad038eb671c44b853887a7e32528fab35dc5d710906323b872dd906107b090339030908690600401611b69565b600060405180830381600087803b1580156107ca57600080fd5b505af11580156107de573d6000803e3d6000fd5b505050506107ec81846116e0565b610868565b6040516323b872dd60e01b815273ad038eb671c44b853887a7e32528fab35dc5d710906323b872dd9061082c90339030908790600401611b69565b600060405180830381600087803b15801561084657600080fd5b505af115801561085a573d6000803e3d6000fd5b5050505061086882846116e0565b604051632ecd4e7d60e01b81523360048201526000906001600160a01b03871690632ecd4e7d906024016020604051808303816000875af11580156108b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d59190611b50565b6040516370a0823160e01b815230600482015290915060009073865377367054516e17014ccded1e7d814edc9ce4906370a0823190602401602060405180830381865afa15801561092a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094e9190611b50565b9050600086831061095f5786610961565b825b9050808210156109e65773865377367054516e17014ccded1e7d814edc9ce46323b872dd33306109918686611ba3565b6040518463ffffffff1660e01b81526004016109af93929190611b69565b600060405180830381600087803b1580156109c957600080fd5b505af11580156109dd573d6000803e3d6000fd5b50505050610a5b565b73865377367054516e17014ccded1e7d814edc9ce463a9059cbb33610a0b8486611ba3565b6040518363ffffffff1660e01b8152600401610a28929190611b01565b600060405180830381600087803b158015610a4257600080fd5b505af1158015610a56573d6000803e3d6000fd5b505050505b60405163095ea7b360e01b815273865377367054516e17014ccded1e7d814edc9ce49063095ea7b390610a94908b908590600401611b01565b600060405180830381600087803b158015610aae57600080fd5b505af1158015610ac2573d6000803e3d6000fd5b5050604051630450cfaf60e31b81526001600160a01b038b1692506322867d789150610af49033908590600401611b01565b600060405180830381600087803b158015610b0e57600080fd5b505af1158015610b22573d6000803e3d6000fd5b505050505050505050505050565b6000896001600160a01b031663d8dfeb456040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610b72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b969190611ab9565b6040516323b872dd60e01b81529091506001600160a01b038216906323b872dd90610bc990339030908e90600401611b69565b600060405180830381600087803b158015610be357600080fd5b505af1158015610bf7573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b038416925063095ea7b39150610c29908d908d90600401611b01565b600060405180830381600087803b158015610c4357600080fd5b505af1158015610c57573d6000803e3d6000fd5b50506040516311f9fbc960e21b81526001600160a01b038d1692506347e7ef249150610c899033908d90600401611b01565b600060405180830381600087803b158015610ca357600080fd5b505af1158015610cb7573d6000803e3d6000fd5b5050505061050b8a89898989898989611625565b604051633525f59160e01b81526001600160a01b03871690633525f59190610d0190339089908990899089908990600401611b1a565b600060405180830381600087803b158015610d1b57600080fd5b505af1158015610d2f573d6000803e3d6000fd5b505050506000866001600160a01b031663d8dfeb456040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610d75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d999190611ab9565b90506001600160a01b03811673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc214610dd75760405162461bcd60e51b815260040161030090611ad6565b604051632e1a7d4d60e01b81526004810187905273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90602401600060405180830381600087803b158015610e2457600080fd5b505af1158015610e38573d6000803e3d6000fd5b50506040516000925033915088908381818185875af1925050503d8060008114610e7e576040519150601f19603f3d011682016040523d82523d6000602084013e610e83565b606091505b5050905080610ecd5760405162461bcd60e51b815260206004820152601660248201527508cc2d2d8cac840e8de40e8e4c2dce6cccae4408aa8960531b6044820152606401610300565b5050505050505050565b6000886001600160a01b031663d8dfeb456040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610f19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3d9190611ab9565b90506001600160a01b03811673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc214610fab5760405162461bcd60e51b815260206004820152601b60248201527f4d61726b6574206973206e6f7420616e20455448206d61726b657400000000006044820152606401610300565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610ffa57600080fd5b505af115801561100e573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b038516935063095ea7b3925061104191508c903490600401611b01565b600060405180830381600087803b15801561105b57600080fd5b505af115801561106f573d6000803e3d6000fd5b50506040516311f9fbc960e21b81526001600160a01b038c1692506347e7ef2491506110a19033903490600401611b01565b600060405180830381600087803b1580156110bb57600080fd5b505af11580156110cf573d6000803e3d6000fd5b505050506110e38989898989898989611625565b505050505050505050565b6110fa898989896106f5565b604051633525f59160e01b81526001600160a01b038a1690633525f5919061113090339089908990899089908990600401611b1a565b600060405180830381600087803b15801561114a57600080fd5b505af115801561115e573d6000803e3d6000fd5b50505050886001600160a01b031663d8dfeb456040518163ffffffff1660e01b81526004016020604051808303816000875af11580156111a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c69190611ab9565b6001600160a01b031663a9059cbb33876040518363ffffffff1660e01b81526004016111f3929190611b01565b600060405180830381600087803b15801561120d57600080fd5b505af1158015611221573d6000803e3d6000fd5b50505050505050505050505050565b61123c898989896106f5565b6110e3898686868686610ccb565b6040516323b872dd60e01b815273865377367054516e17014ccded1e7d814edc9ce4906323b872dd9061128590339030908b90600401611b69565b600060405180830381600087803b15801561129f57600080fd5b505af11580156112b3573d6000803e3d6000fd5b505060405163095ea7b360e01b815273865377367054516e17014ccded1e7d814edc9ce4925063095ea7b391506112f0908a908a90600401611b01565b600060405180830381600087803b15801561130a57600080fd5b505af115801561131e573d6000803e3d6000fd5b5050604051630450cfaf60e31b81526001600160a01b038a1692506322867d7891506113509033908a90600401611b01565b600060405180830381600087803b15801561136a57600080fd5b505af115801561137e573d6000803e3d6000fd5b50505050611390878686868686610ccb565b50505050505050565b60008084816113a9600283611bba565b6001546000805460405163556d6e9f60e01b815260048101939093526024830152604482018590529192507f000000000000000000000000056ef502c1fc5335172bc95ec4cae16c2eb9b5b66001600160a01b03169063556d6e9f90606401602060405180830381865afa158015611425573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114499190611b50565b905060006301e133808861145d8b87611bdc565b6114679190611bf4565b6114719190611bba565b9050600081831161148b576114868383611ba3565b611495565b6114958284611ba3565b905060005b888110156115ee5785838511156114bc576114b58682611ba3565b90506114c9565b6114c68682611bdc565b90505b6001546000805460405163556d6e9f60e01b81526004810193909352602483015260448201839052907f000000000000000000000000056ef502c1fc5335172bc95ec4cae16c2eb9b5b66001600160a01b03169063556d6e9f90606401602060405180830381865afa158015611543573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115679190611b50565b905060006301e133808d8f8561157d9190611bdc565b6115879190611bf4565b6115919190611bba565b905060008183116115ab576115a68383611ba3565b6115b5565b6115b58284611ba3565b9050858110156115cc578297508196508095508399505b6115d760028a611bba565b985050505050806115e790611c13565b905061149a565b50846301e133808a611600838e611bdc565b61160a9190611bf4565b6116149190611bba565b965096505050505050935093915050565b60006116318789611bdc565b604051631ef08b7560e01b81529091506001600160a01b038a1690631ef08b759061166a90339085908a908a908a908a90600401611b1a565b600060405180830381600087803b15801561168457600080fd5b505af1158015611698573d6000803e3d6000fd5b505050506116a787873361179a565b60405163a9059cbb60e01b815273865377367054516e17014ccded1e7d814edc9ce49063a9059cbb906111f39033908c90600401611b01565b8115611796576000805460015460405163394747c560e01b815260048101929092526024820152604481018490526064810183905260848101919091526001600160a01b037f000000000000000000000000056ef502c1fc5335172bc95ec4cae16c2eb9b5b6169063394747c59060a4016020604051808303816000875af1158015611770573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117949190611b50565b505b5050565b8215611794576001546000805460405163ce7d650360e01b815260048101939093526024830152604482018590526064820184905260848201526001600160a01b0382811660a48301527f000000000000000000000000056ef502c1fc5335172bc95ec4cae16c2eb9b5b6169063ce7d65039060c4016020604051808303816000875af115801561182f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118539190611b50565b50505050565b6001600160a01b038116811461186e57600080fd5b50565b803560ff8116811461188257600080fd5b919050565b60008060008060008060c087890312156118a057600080fd5b86356118ab81611859565b955060208701359450604087013593506118c760608801611871565b92506080870135915060a087013590509295509295509295565b6000602082840312156118f357600080fd5b81356118fe81611859565b9392505050565b6000806000806080858703121561191b57600080fd5b843561192681611859565b966020860135965060408601359560600135945092505050565b60008060008060008060008060006101208a8c03121561195f57600080fd5b893561196a81611859565b985060208a0135975060408a0135965060608a0135955060808a0135945060a08a0135935061199b60c08b01611871565b925060e08a013591506101008a013590509295985092959850929598565b600080600080600080600080610100898b0312156119d657600080fd5b88356119e181611859565b975060208901359650604089013595506060890135945060808901359350611a0b60a08a01611871565b925060c0890135915060e089013590509295985092959890939650565b600080600080600080600060e0888a031215611a4357600080fd5b8735611a4e81611859565b9650602088013595506040880135945060608801359350611a7160808901611871565b925060a0880135915060c0880135905092959891949750929550565b600080600060608486031215611aa257600080fd5b505081359360208301359350604090920135919050565b600060208284031215611acb57600080fd5b81516118fe81611859565b602080825260119082015270139bdd08185b88115512081b585c9ad95d607a1b604082015260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039690961686526020860194909452604085019290925260ff166060840152608083015260a082015260c00190565b600060208284031215611b6257600080fd5b5051919050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015611bb557611bb5611b8d565b500390565b600082611bd757634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115611bef57611bef611b8d565b500190565b6000816000190483118215151615611c0e57611c0e611b8d565b500290565b600060018201611c2557611c25611b8d565b506001019056fea2646970667358221220494e1e616a94181407a8bd16b58b27afde50b4951a6f79ef07522e592319697c64736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000056ef502c1fc5335172bc95ec4cae16c2eb9b5b6
-----Decoded View---------------
Arg [0] : _pool (address): 0x056ef502C1Fc5335172bc95EC4cAE16C2eB9b5b6
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000056ef502c1fc5335172bc95ec4cae16c2eb9b5b6
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.