0 txs
1 call
constructor
constructor(address _creditManager, address _router)
functions
_gearboxAdapterType
viewfunction _gearboxAdapterType() view returns (uint8)
_gearboxAdapterVersion
viewfunction _gearboxAdapterVersion() view returns (uint16)
acl
viewfunction acl() view returns (address)
addressProvider
viewfunction addressProvider() view returns (address)
creditManager
viewfunction creditManager() view returns (address)
getAllowedPools
viewfunction getAllowedPools() view returns (address[] pools)
isPoolAllowed
viewfunction isPoolAllowed(address pool) view returns (bool)
targetContract
viewfunction targetContract() view returns (address)
setPoolStatusBatch
nonpayablefunction setPoolStatusBatch(address[] pools, bool[] statuses)
swapSingleTokenDiffIn
nonpayablefunction swapSingleTokenDiffIn(address pool, address tokenIn, address tokenOut, uint256 leftoverAmount, uint256 rateMinRAY, uint256 deadline) returns (uint256 tokensToEnable, uint256 tokensToDisable)
swapSingleTokenExactIn
nonpayablefunction swapSingleTokenExactIn(address pool, address tokenIn, address tokenOut, uint256 exactAmountIn, uint256 minAmountOut, uint256 deadline, bool, bytes) returns (uint256 tokensToEnable, uint256 tokensToDisable)
events
SetPoolStatus
event SetPoolStatus(address indexed pool, bool allowed)
errors
CallerNotConfiguratorException
error CallerNotConfiguratorException()
CallerNotCreditFacadeException
error CallerNotCreditFacadeException()
InvalidLengthException
error InvalidLengthException()
InvalidPoolException
error InvalidPoolException()
ZeroAddressException
error ZeroAddressException()
creation bytecode
0x6101006040523480156200001257600080fd5b506040516200146338038062001463833981016040819052620000359162000214565b8181816001600160a01b0316632954018c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000076573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200009c91906200024c565b80620000a881620001cc565b604051632bdad0e360e11b8152621050d360ea1b6004820152600060248201526001600160a01b038316906357b5a1c690604401602060405180830381865afa158015620000fa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200012091906200024c565b6001600160a01b0316608052508190506200013b81620001cc565b6001600160a01b03831660a081905260408051630a55006360e21b81529051632954018c916004808201926020929091908290030181865afa15801562000186573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001ac91906200024c565b6001600160a01b0390811660c0529190911660e052506200027192505050565b6001600160a01b038116620001f457604051635919af9760e11b815260040160405180910390fd5b50565b80516001600160a01b03811681146200020f57600080fd5b919050565b600080604083850312156200022857600080fd5b6200023383620001f7565b91506200024360208401620001f7565b90509250929050565b6000602082840312156200025f57600080fd5b6200026a82620001f7565b9392505050565b60805160a05160c05160e05161118f620002d460003960006101700152600060d301526000818161019701528181610693015281816107de01528181610a8301528181610b2f0152610bba01526000818161020b0152610899015261118f6000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c8063c12c21c011610081578063daad78fd1161005b578063daad78fd146101f1578063de28735914610206578063ebdb4d771461022d57600080fd5b8063c12c21c014610192578063ce30bbdb146101b9578063d1e71c94146101ce57600080fd5b8063750283bc116100b2578063750283bc1461012757806378aa73a41461014f578063bd90df701461016b57600080fd5b80632954018c146100ce57806369b2df5514610112575b600080fd5b6100f57f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b610125610120366004610cde565b610240565b005b61013a610135366004610d70565b61035e565b60408051928352602083019190915201610109565b61015861012c81565b60405161ffff9091168152602001610109565b6100f57f000000000000000000000000000000000000000000000000000000000000000081565b6100f57f000000000000000000000000000000000000000000000000000000000000000081565b6101c1602481565b6040516101099190610e4a565b6101e16101dc366004610e72565b610443565b6040519015158152602001610109565b6101f9610455565b6040516101099190610e8f565b6100f57f000000000000000000000000000000000000000000000000000000000000000081565b61013a61023b366004610edc565b610466565b61024861061f565b82818114610282576040517ffaccb25000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b818110156103565760008686838181106102a1576102a1610f41565b90506020020160208101906102b69190610e72565b905060008585848181106102cc576102cc610f41565b90506020020160208101906102e19190610f57565b905080156102fa576102f4600083610660565b50610307565b61030560008361067c565b505b816001600160a01b03167f2f62a1a1d6859de456dd8107c09e738da088ceb9f87d90c2e31f91fb3e89b72782604051610344911515815260200190565b60405180910390a25050600101610285565b505050505050565b600080610369610691565b6103728b610443565b61038f57604051632a708ca360e01b815260040160405180910390fd5b6040516001600160a01b03808d166024830152808c1660448301528a1660648201526084810189905260a4810188905260c48101879052600060e48201819052610100610104830152610124820152610430908b908b906101440160408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16631d40a0ef60e21b179052600061075d565b50909c909b509950505050505050505050565b600061044f81836107ab565b92915050565b606061046160006107cd565b905090565b600080610471610691565b61047a88610443565b61049757604051632a708ca360e01b815260040160405180910390fd5b60006104a16107da565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0380831660048301529192506000918a16906370a0823190602401602060405180830381865afa158015610506573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052a9190610f74565b905086811161054157600080935093505050610614565b86900361060b89898c8282866b033b2e3c9fd0803ce80000006105648e83610fa3565b61056e9190610fba565b6040516001600160a01b0395861660248201529385166044850152939091166064830152608482015260a481019190915260c48101899052600060e482018190526101006101048301526101248201526101440160408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16631d40a0ef60e21b17905260018b111561075d565b50909450925050505b965096945050505050565b6106283361085e565b61065e576040517f61081c1500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6000610675836001600160a01b038416610906565b9392505050565b6000610675836001600160a01b038416610955565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632f7a18816040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107139190610fdc565b6001600160a01b0316336001600160a01b03161461065e576040517f0c1d6a3f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080606061076b86610a48565b9250831561077f5761077c87610a48565b91505b61078b87600019610af0565b61079485610b87565b90506107a1876001610af0565b9450945094915050565b6001600160a01b03811660009081526001830160205260408120541515610675565b6060600061067583610c36565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166334878f546040518163ffffffff1660e01b8152600401602060405180830381865afa15801561083a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104619190610fdc565b6040517f5f259aba0000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301526000917f000000000000000000000000000000000000000000000000000000000000000090911690635f259aba90602401602060405180830381865afa1580156108e2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044f9190610ff9565b600081815260018301602052604081205461094d5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561044f565b50600061044f565b60008181526001830160205260408120548015610a3e576000610979600183611016565b855490915060009061098d90600190611016565b90508181146109f25760008660000182815481106109ad576109ad610f41565b90600052602060002001549050808760000184815481106109d0576109d0610f41565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080610a0357610a03611029565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061044f565b600091505061044f565b6040517fd5c2f4860000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063d5c2f48690602401602060405180830381865afa158015610acc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044f9190610f74565b6040517ffa30b30f0000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063fa30b30f90604401600060405180830381600087803b158015610b7357600080fd5b505af1158015610356573d6000803e3d6000fd5b6040517f09c5eabe0000000000000000000000000000000000000000000000000000000081526060906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906309c5eabe90610bef908590600401611063565b6000604051808303816000875af1158015610c0e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261044f91908101906110ac565b606081600001805480602002602001604051908101604052809291908181526020018280548015610c8657602002820191906000526020600020905b815481526020019060010190808311610c72575b50505050509050919050565b60008083601f840112610ca457600080fd5b50813567ffffffffffffffff811115610cbc57600080fd5b6020830191508360208260051b8501011115610cd757600080fd5b9250929050565b60008060008060408587031215610cf457600080fd5b843567ffffffffffffffff80821115610d0c57600080fd5b610d1888838901610c92565b90965094506020870135915080821115610d3157600080fd5b50610d3e87828801610c92565b95989497509550505050565b6001600160a01b0381168114610d5f57600080fd5b50565b8015158114610d5f57600080fd5b60008060008060008060008060006101008a8c031215610d8f57600080fd5b8935610d9a81610d4a565b985060208a0135610daa81610d4a565b975060408a0135610dba81610d4a565b965060608a0135955060808a0135945060a08a0135935060c08a0135610ddf81610d62565b925060e08a013567ffffffffffffffff80821115610dfc57600080fd5b818c0191508c601f830112610e1057600080fd5b813581811115610e1f57600080fd5b8d6020828501011115610e3157600080fd5b6020830194508093505050509295985092959850929598565b6020810160258310610e6c57634e487b7160e01b600052602160045260246000fd5b91905290565b600060208284031215610e8457600080fd5b813561067581610d4a565b6020808252825182820181905260009190848201906040850190845b81811015610ed05783516001600160a01b031683529284019291840191600101610eab565b50909695505050505050565b60008060008060008060c08789031215610ef557600080fd5b8635610f0081610d4a565b95506020870135610f1081610d4a565b94506040870135610f2081610d4a565b959894975094956060810135955060808101359460a0909101359350915050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215610f6957600080fd5b813561067581610d62565b600060208284031215610f8657600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761044f5761044f610f8d565b600082610fd757634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610fee57600080fd5b815161067581610d4a565b60006020828403121561100b57600080fd5b815161067581610d62565b8181038181111561044f5761044f610f8d565b634e487b7160e01b600052603160045260246000fd5b60005b8381101561105a578181015183820152602001611042565b50506000910152565b602081526000825180602084015261108281604085016020870161103f565b601f01601f19169190910160400192915050565b634e487b7160e01b600052604160045260246000fd5b6000602082840312156110be57600080fd5b815167ffffffffffffffff808211156110d657600080fd5b818401915084601f8301126110ea57600080fd5b8151818111156110fc576110fc611096565b604051601f8201601f19908116603f0116810190838211818310171561112457611124611096565b8160405282815287602084870101111561113d57600080fd5b61114e83602083016020880161103f565b97965050505050505056fea26469706673582212209fd0346602a837592e48ab6451c72f4888972fe1812a7309ccb794bf2eec1f2f64736f6c634300081100330000000000000000000000004bf7481fdf7b67a8206254badc15480a55bb25ab0000000000000000000000007a4f78f29c0aa3bd34ea600f1f798535bca925ec