0 txs
10 calls
constructor
constructor(address _creditManager, address _baseRewardPool, address _stakedPhantomToken)
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)
curveLPtoken
viewfunction curveLPtoken() view returns (address)
curveLPTokenMask
viewfunction curveLPTokenMask() view returns (uint256)
extraReward1
viewfunction extraReward1() view returns (address)
extraReward2
viewfunction extraReward2() view returns (address)
extraReward3
viewfunction extraReward3() view returns (address)
extraReward4
viewfunction extraReward4() view returns (address)
rewardTokensMask
viewfunction rewardTokensMask() view returns (uint256)
stakedPhantomToken
viewfunction stakedPhantomToken() view returns (address)
stakedTokenMask
viewfunction stakedTokenMask() view returns (uint256)
stakingToken
viewfunction stakingToken() view returns (address)
stakingTokenMask
viewfunction stakingTokenMask() view returns (uint256)
targetContract
viewfunction targetContract() view returns (address)
getReward
nonpayablefunction getReward() returns (uint256 tokensToEnable, uint256 tokensToDisable)
stake
nonpayablefunction stake(uint256) returns (uint256 tokensToEnable, uint256 tokensToDisable)
stakeDiff
nonpayablefunction stakeDiff(uint256 leftoverAmount) returns (uint256 tokensToEnable, uint256 tokensToDisable)
withdraw
nonpayablefunction withdraw(uint256, bool claim) returns (uint256 tokensToEnable, uint256 tokensToDisable)
withdrawAndUnwrap
nonpayablefunction withdrawAndUnwrap(uint256, bool claim) returns (uint256 tokensToEnable, uint256 tokensToDisable)
withdrawDiff
nonpayablefunction withdrawDiff(uint256 leftoverAmount, bool claim) returns (uint256 tokensToEnable, uint256 tokensToDisable)
withdrawDiffAndUnwrap
nonpayablefunction withdrawDiffAndUnwrap(uint256 leftoverAmount, bool claim) returns (uint256 tokensToEnable, uint256 tokensToDisable)
events
No events.
errors
CallerNotCreditFacadeException
error CallerNotCreditFacadeException()
ZeroAddressException
error ZeroAddressException()
creation bytecode
0x6102606040523480156200001257600080fd5b5060405162001cde38038062001cde833981016040819052620000359162000a42565b8282816001600160a01b0316632954018c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000076573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200009c919062000a96565b80620000a881620005e8565b604051632bdad0e360e11b8152621050d360ea1b6004820152600060248201526001600160a01b038316906357b5a1c690604401602060405180830381865afa158015620000fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000120919062000a96565b6001600160a01b0316608052508190506200013b81620005e8565b6001600160a01b03831660a081905260408051630a55006360e21b81529051632954018c916004808201926020929091908290030181865afa15801562000186573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001ac919062000a96565b6001600160a01b0390811660c05291821660e05250604080516372f702f360e01b8152905191851692506372f702f39160048083019260209291908290030181865afa15801562000201573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000227919062000a96565b6001600160a01b0316610120819052620002419062000613565b610200526001600160a01b038116610140819052620002609062000613565b61022081815250506000826001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015620002a9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002cf919062000a96565b90506000816001600160a01b0316631526fe27856001600160a01b031663f10684546040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000321573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000347919062000abd565b6040518263ffffffff1660e01b81526004016200036691815260200190565b60c060405180830381865afa15801562000384573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003aa919062000ae8565b80516001600160a01b0316610100819052909150620003c99062000613565b6101e08181525050600080856001600160a01b031663f7c618c16040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000413573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000439919062000a96565b90506200045f6200044a8262000613565b836200068b60201b620009991790919060201c565b9150620004706200044a856200068f565b915060008060008060008a6001600160a01b031663d55a23f46040518163ffffffff1660e01b8152600401602060405180830381865afa158015620004b9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004df919062000abd565b905060018110620005b5576000620004f781620007ea565b90965090506200051488826200068b602090811b6200099917901c565b975060028210620005b3576200052b6001620007ea565b90955090506200054888826200068b602090811b6200099917901c565b975060038210620005b3576200055f6002620007ea565b90945090506200057c88826200068b602090811b6200099917901c565b975060048210620005b357620005936003620007ea565b9093509050620005b088826200068b602090811b6200099917901c565b97505b505b506001600160a01b03938416610160529183166101805282166101a052166101c05250610240525062000ba29350505050565b6001600160a01b0381166200061057604051635919af9760e11b815260040160405180910390fd5b50565b60a051604051636ae17a4360e11b81526001600160a01b038381166004830152600092169063d5c2f48690602401602060405180830381865afa1580156200065f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000685919062000abd565b92915050565b1790565b600080826001600160a01b031663075461726040518163ffffffff1660e01b8152600401602060405180830381865afa158015620006d1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620006f7919062000a96565b60a051604051636ae17a4360e11b81526001600160a01b03808416600483015292935091169063d5c2f48690602401602060405180830381865afa92505050801562000762575060408051601f3d908101601f191682019092526200075f9181019062000abd565b60015b620007e157806001600160a01b03166376968f496040518163ffffffff1660e01b8152600401602060405180830381865afa158015620007a6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620007cc919062000a96565b9050620007d98162000613565b9150620007e4565b91505b50919050565b60008060e0516001600160a01b03166340c35446846040518263ffffffff1660e01b81526004016200081e91815260200190565b602060405180830381865afa1580156200083c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000862919062000a96565b6001600160a01b031663f7c618c16040518163ffffffff1660e01b8152600401602060405180830381865afa158015620008a0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620008c6919062000a96565b60a051604051636ae17a4360e11b81526001600160a01b03808416600483015292945091169063d5c2f48690602401602060405180830381865afa92505050801562000931575060408051601f3d908101601f191682019092526200092e9181019062000abd565b60015b62000a1357816001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801562000993575060408051601f3d908101601f19168201909252620009909181019062000a96565b60015b62000a0557816001600160a01b031663c55dae636040518163ffffffff1660e01b8152600401602060405180830381865afa158015620009d7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620009fd919062000a96565b915062000a08565b91505b62000a138262000613565b9050915091565b6001600160a01b03811681146200061057600080fd5b805162000a3d8162000a1a565b919050565b60008060006060848603121562000a5857600080fd5b835162000a658162000a1a565b602085015190935062000a788162000a1a565b604085015190925062000a8b8162000a1a565b809150509250925092565b60006020828403121562000aa957600080fd5b815162000ab68162000a1a565b9392505050565b60006020828403121562000ad057600080fd5b5051919050565b8051801515811462000a3d57600080fd5b600060c0828403121562000afb57600080fd5b60405160c081016001600160401b038111828210171562000b2c57634e487b7160e01b600052604160045260246000fd5b60405262000b3a8362000a30565b815262000b4a6020840162000a30565b602082015262000b5d6040840162000a30565b604082015262000b706060840162000a30565b606082015262000b836080840162000a30565b608082015262000b9660a0840162000ad7565b60a08201529392505050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516101e05161020051610220516102405161101262000ccc600039600081816104750152818161057701528181610a890152610d1f0152600081816101e601528181610adc0152610cac0152600081816104af01528181610aab0152610cda0152600081816104000152610d41015260006101a20152600061033d015260006103160152600061042701526000818161021b015281816105d901526107540152600081816102ac015281816108b801528181610c4e0152610c84015260006102ef0152600061038a015260006102420152600081816103b10152818161099f01528181610b3b01528181610bc10152610da30152600061044e01526110126000f3fe608060405234801561001057600080fd5b50600436106101985760003560e01c8063a694fc3a116100e3578063d599105c1161008c578063e4b02d8e11610066578063e4b02d8e14610470578063f205399e14610497578063f56b4b03146104aa57600080fd5b8063d599105c146103fb578063da5b383f14610422578063de2873591461044957600080fd5b8063c12c21c0116100bd578063c12c21c0146103ac578063c32e7202146103d3578063ce30bbdb146103e657600080fd5b8063a694fc3a1461035f578063b25547d514610372578063bd90df701461038557600080fd5b80633e263b9b11610145578063927188d91161011f578063927188d9146102ea57806397c3413b14610311578063a4a03b5b1461033857600080fd5b80633e263b9b1461029457806372f702f3146102a757806378aa73a4146102ce57600080fd5b80632954018c116101765780632954018c1461023d57806338d07436146102645780633d18b9121461028c57600080fd5b8063090c21591461019d57806319178c2a146101e157806320b2c15114610216575b600080fd5b6101c47f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6102087f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016101d8565b6101c47f000000000000000000000000000000000000000000000000000000000000000081565b6101c47f000000000000000000000000000000000000000000000000000000000000000081565b610277610272366004610e03565b6104d1565b604080519283526020830191909152016101d8565b610277610529565b6102776102a2366004610e03565b61059f565b6101c47f000000000000000000000000000000000000000000000000000000000000000081565b6102d761012d81565b60405161ffff90911681526020016101d8565b6101c47f000000000000000000000000000000000000000000000000000000000000000081565b6101c47f000000000000000000000000000000000000000000000000000000000000000081565b6101c47f000000000000000000000000000000000000000000000000000000000000000081565b61027761036d366004610e38565b6106c5565b610277610380366004610e03565b61071a565b6101c47f000000000000000000000000000000000000000000000000000000000000000081565b6101c47f000000000000000000000000000000000000000000000000000000000000000081565b6102776103e1366004610e03565b610831565b6103ee600a81565b6040516101d89190610e51565b6102087f000000000000000000000000000000000000000000000000000000000000000081565b6101c47f000000000000000000000000000000000000000000000000000000000000000081565b6101c47f000000000000000000000000000000000000000000000000000000000000000081565b6102087f000000000000000000000000000000000000000000000000000000000000000081565b6102776104a5366004610e38565b61087e565b6102087f000000000000000000000000000000000000000000000000000000000000000081565b6000806104dc61099d565b61051e6000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052508893509150610a6b9050565b909590945092505050565b60008061053461099d565b6105746000368080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610b0892505050565b507f000000000000000000000000000000000000000000000000000000000000000092600092509050565b6000806105aa61099d565b60006105b4610bbd565b6040516370a0823160e01b81526001600160a01b0380831660048301529192506000917f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015610620573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106449190610e79565b9050858111156106bc57604051868203602482015285151560448201526106b69060640160408051601f198184030181529190526020810180516001600160e01b03167f38d0743600000000000000000000000000000000000000000000000000000000179052866001891115610a6b565b90945092505b50509250929050565b6000806106d061099d565b6107106000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509250610c46915050565b9094909350915050565b60008061072561099d565b600061072f610bbd565b6040516370a0823160e01b81526001600160a01b0380831660048301529192506000917f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa15801561079b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107bf9190610e79565b9050858111156106bc57604051868203602482015285151560448201526106b69060640160408051601f198184030181529190526020810180516001600160e01b03167fc32e720200000000000000000000000000000000000000000000000000000000179052866001891115610d01565b60008061083c61099d565b61051e6000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052508893509150610d019050565b60008061088961099d565b6000610893610bbd565b6040516370a0823160e01b81526001600160a01b0380831660048301529192506000917f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa1580156108ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109239190610e79565b90508481111561099257604051858203602482015261098c9060440160408051601f198184030181529190526020810180516001600160e01b03167fa694fc3a000000000000000000000000000000000000000000000000000000001790526001871115610c46565b90945092505b5050915091565b1790565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632f7a18816040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109fb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1f9190610e92565b6001600160a01b0316336001600160a01b031614610a69576040517f0c1d6a3f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b600080610a7785610b08565b50610ace84610a87576000610aa9565b7f00000000000000000000000000000000000000000000000000000000000000005b7f00000000000000000000000000000000000000000000000000000000000000001790565b83610ada576000610afc565b7f00000000000000000000000000000000000000000000000000000000000000005b90969095509350505050565b6040517f09c5eabe0000000000000000000000000000000000000000000000000000000081526060906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906309c5eabe90610b70908590600401610ee6565b6000604051808303816000875af1158015610b8f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610bb79190810190610f2f565b92915050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166334878f546040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c419190610e92565b905090565b600080610c757f0000000000000000000000000000000000000000000000000000000000000000600019610d64565b610c7e84610b08565b50610caa7f00000000000000000000000000000000000000000000000000000000000000006001610d64565b7f000000000000000000000000000000000000000000000000000000000000000083610cd757600061051e565b947f0000000000000000000000000000000000000000000000000000000000000000945092505050565b600080610d0d85610b08565b50610ace84610d1d576000610d3f565b7f00000000000000000000000000000000000000000000000000000000000000005b7f00000000000000000000000000000000000000000000000000000000000000001790565b6040517ffa30b30f0000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063fa30b30f90604401600060405180830381600087803b158015610de757600080fd5b505af1158015610dfb573d6000803e3d6000fd5b505050505050565b60008060408385031215610e1657600080fd5b8235915060208301358015158114610e2d57600080fd5b809150509250929050565b600060208284031215610e4a57600080fd5b5035919050565b6020810160258310610e7357634e487b7160e01b600052602160045260246000fd5b91905290565b600060208284031215610e8b57600080fd5b5051919050565b600060208284031215610ea457600080fd5b81516001600160a01b0381168114610ebb57600080fd5b9392505050565b60005b83811015610edd578181015183820152602001610ec5565b50506000910152565b6020815260008251806020840152610f05816040850160208701610ec2565b601f01601f19169190910160400192915050565b634e487b7160e01b600052604160045260246000fd5b600060208284031215610f4157600080fd5b815167ffffffffffffffff80821115610f5957600080fd5b818401915084601f830112610f6d57600080fd5b815181811115610f7f57610f7f610f19565b604051601f8201601f19908116603f01168101908382118183101715610fa757610fa7610f19565b81604052828152876020848701011115610fc057600080fd5b610fd1836020830160208801610ec2565b97965050505050505056fea2646970667358221220c11e3d89b56cb7b558b1b39e06491c2fb21842290032c61cea139d6f9f67b5a264736f6c63430008110033000000000000000000000000f73dcfe24f5e4d290c79fea72169deb6873666ae0000000000000000000000005a71e7e04f8725fd42a216949e7099ebd08a42e3000000000000000000000000444fa0ffb033265591895b66c81c2e5ff606e097