Address Contract Partially Verified
Address
0x5684d5566bb438D8Ef7B3C1E5da9450cD19C1b9f
Balance
0 ETH
Nonce
1
Code Size
17734 bytes
Creator
0x4600D3b1...2A35 at tx 0x58e9e786...06ba54
Indexed Transactions
0
Contract Bytecode
17734 bytes
0x608060405234801561001057600080fd5b50600436106103ea5760003560e01c80637d6ef08e1161021a578063d2010fb411610135578063e1ba95d2116100c8578063f2a8d34911610097578063f77e34d11161007c578063f77e34d114610911578063facefb6414610924578063fff6cae91461093757600080fd5b8063f2a8d349146108f5578063f2caeb1e146108fe57600080fd5b8063e1ba95d2146108c8578063e7f30582146108d0578063ebe2b12b146108e3578063f288baf6146108ec57600080fd5b8063d7400d5611610104578063d7400d5614610871578063d9f96e8d14610884578063de1a6551146108ad578063e01f62bf146108c057600080fd5b8063d2010fb41461082f578063d2fbdc0d14610838578063d42fc9b41461084b578063d5e1a9c61461085e57600080fd5b8063aa1d4fce116101ad578063c35438261161017c578063c3543826146107e1578063c8f33c91146107f4578063ca6df29d146107fd578063cdc82e801461082657600080fd5b8063aa1d4fce146107a9578063b85efd06146107b2578063b94c4dcb146107c5578063c00007b0146107ce57600080fd5b80638da5cb5b116101e95780638da5cb5b1461076357806391cf600a146107765780639637927f14610789578063a0f234761461079657600080fd5b80637d6ef08e146106f05780637f472e541461070f5780638980f11f146107225780638bad86a71461073557600080fd5b8063387edc861161030a5780636c430dbb1161029d578063774d4ae71161026c578063774d4ae7146106875780637910d17b1461069a5780637970833e146106ad57806379ba5097146106e857600080fd5b80636c430dbb146106395780636e27cef91461065957806370641a361461066257806372f702f31461066a57600080fd5b806353a47bb7116102d957806353a47bb7146105f65780635bfd92581461060957806364f2c06014610611578063693392451461061957600080fd5b8063387edc861461059457806341a16f3f146105a75780634f39059c146105d05780634fd2b536146105e357600080fd5b80631face856116103825780632c0c2a0a116103515780632c0c2a0a1461053b5780632df079f11461054e57806336f89af214610561578063386a95251461058a57600080fd5b80631face856146104b1578063218751b2146104c4578063231b68dc146104ef57806328408bab1461051257600080fd5b80631627540c116103be5780631627540c1461046157806317b18c89146104765780631c1f78eb146104895780631e090f011461049157600080fd5b80628cc262146103ef5780630238b936146104185780630d7bac4f1461043957806312edb24c1461044c575b600080fd5b6104026103fd366004613f52565b61093f565b60405161040f9190613f6d565b60405180910390f35b61042b610426366004613fbf565b610a97565b60405190815260200161040f565b61042b610447366004613fff565b610b64565b610454610b90565b60405161040f9190614018565b61047461046f366004613f52565b610bf2565b005b61042b610484366004614059565b610cde565b610402610d4e565b6104a461049f366004613f52565b610def565b60405161040f919061407b565b61042b6104bf366004613f52565b610e96565b6024546104d7906001600160a01b031681565b6040516001600160a01b03909116815260200161040f565b6105026104fd3660046140e9565b610ece565b604051901515815260200161040f565b6104d7610520366004613f52565b6021602052600090815260409020546001600160a01b031681565b61042b610549366004613f52565b610f73565b61047461055c36600461411c565b61121e565b61042b61056f366004613f52565b6001600160a01b03166000908152601f602052604090205490565b61042b62093a8081565b6104746105a2366004613f52565b61135e565b6104d76105b5366004613f52565b600f602052600090815260409020546001600160a01b031681565b6023546104d7906001600160a01b031681565b61042b6105f1366004613f52565b611414565b6001546104d7906001600160a01b031681565b61042b611435565b601d5461042b565b61042b610627366004613f52565b60156020526000908152604090205481565b61042b610647366004613f52565b60196020526000908152604090205481565b61042b60085481565b6104026114cd565b6022546104d790660100000000000090046001600160a01b031681565b61042b610695366004614178565b61162c565b6104026106a83660046141a2565b611804565b6106c06106bb366004614178565b611866565b604080519586526020860194909452928401919091526060830152608082015260a00161040f565b6104746118b4565b61042b6106fe366004613f52565b602080526000908152604090205481565b61042b61071d366004613f52565b6119be565b610474610730366004614178565b6119d5565b610748610743366004613f52565b611b04565b6040805193845260208401929092529082015260600161040f565b6000546104d7906001600160a01b031681565b610474610784366004613f52565b611cdd565b6022546105029060ff1681565b61042b6107a4366004613f52565b611d9c565b61042b60095481565b6104746107c0366004614059565b611e59565b61042b60075481565b6104026107dc366004613f52565b611fee565b6104d76107ef366004613f52565b61205c565b61042b60055481565b61042b61080b366004613f52565b6001600160a01b031660009081526025602052604090205490565b61042b60065481565b61042b60035481565b610474610846366004614059565b6120a5565b61042b610859366004613f52565b61238b565b61047461086c3660046141d9565b6123ba565b61047461087f366004613f52565b612534565b61042b610892366004613f52565b6001600160a01b03166000908152601e602052604090205490565b6104746108bb3660046140e9565b6126d9565b601c5461042b565b61047461278c565b6104746108de366004613f52565b612836565b61042b60045481565b61042b600a5481565b61042b600b5481565b61042b61090c366004613fff565b612962565b61047461091f366004614226565b612a5f565b610474610932366004614272565b612c0e565b610474612d62565b6060600061094b6114cd565b60105490915067ffffffffffffffff81111561096957610969614243565b604051908082528060200260200182016040528015610992578160200160208202803683370190505b506001600160a01b0384166000908152601f602052604090205490925015610a915760005b601054811015610a8f576001600160a01b0384166000818152601860209081526040808320858452825280832054938352601782528083208584529091529020548351670de0b6b3a76400009190859085908110610a1757610a17614317565b6020026020010151610a299190614375565b6001600160a01b0387166000908152601f6020526040902054610a4c9190614388565b610a56919061439f565b610a6091906143da565b838281518110610a7257610a72614317565b602090810291909101015280610a87816143ed565b9150506109b7565b505b50919050565b60006002805403610aef5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60028055602254610100900460ff1615610b4b5760405162461bcd60e51b815260206004820152601260248201527f5769746864726177616c732070617573656400000000000000000000000000006044820152606401610ae6565b610b5733848685612d92565b6001600255949350505050565b600654600754600091610b8a91610b7b8286614388565b610b85919061439f565b612f2f565b92915050565b60606010805480602002602001604051908101604052809291908181526020018280548015610be857602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610bca575b5050505050905090565b6000546001600160a01b03163314610c725760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e00000000000000000000000000000000006064820152608401610ae6565b600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229060200160405180910390a150565b60006002805403610d315760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ae6565b60028055610d423380858542612f47565b60016002559392505050565b60135460609067ffffffffffffffff811115610d6c57610d6c614243565b604051908082528060200260200182016040528015610d95578160200160208202803683370190505b50905060005b601354811015610deb5762093a80610db282612962565b610dbc9190614388565b828281518110610dce57610dce614317565b602090810291909101015280610de3816143ed565b915050610d9b565b5090565b6001600160a01b0381166000908152602560209081526040808320805482518185028101850190935280835260609492939192909184015b82821015610e8b57838290600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505081526020019060010190610e27565b505050509050919050565b6001600160a01b0381166000908152602080526040812054600354670de0b6b3a764000091610ec491614388565b610b8a919061439f565b6001600160a01b03811660009081526014602052604081205460ff16610ef657506000610b8a565b6001600160a01b0383161580610f1357506001600160a01b038216155b15610f2057506000610b8a565b6000546001600160a01b0390811690841603610f3e57506001610b8a565b6001600160a01b038281166000908152600f6020526040902054818516911603610f6a57506001610b8a565b50600092915050565b60008080610f808461205c565b90506001600160a01b0381161561102b576040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015273c8418af6358ffdda74e09ca9cc3fe03ca6adc5b0906370a0823190602401602060405180830381865afa158015611002573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110269190614425565b6110c0565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038516600482015273c8418af6358ffdda74e09ca9cc3fe03ca6adc5b0906370a0823190602401602060405180830381865afa15801561109c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c09190614425565b91506000670de0b6b3a764000073c8418af6358ffdda74e09ca9cc3fe03ca6adc5b06001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561111f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111439190614425565b61114d9190614388565b600954600a5461115d9086614388565b6111679190614388565b611171919061439f565b90506000806001600160a01b038416156111935761118e846119be565b61119c565b61119c87611414565b905080156111ee576000816111b9670de0b6b3a764000088614388565b6111c3919061439f565b9050670de0b6b3a7640000600a54826111dc9190614388565b6111e6919061439f565b9250506111f3565b600091505b508082116112015780611203565b815b9450600a5485111561121557600a5494505b50505050919050565b6000546001600160a01b031633148061124a5750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b6112965760405162461bcd60e51b815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610ae6565b602280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff00ff166301000000951515959095027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169490941761010093151593909302929092177fffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff00ffff1662010000911515919091027fffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffffff161764010000000091151591909102179055565b60028054036113af5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ae6565b6002805560225462010000900460ff161561140c5760405162461bcd60e51b815260206004820152601960248201527f5265776172647320636f6c6c656374696f6e20706175736564000000000000006044820152606401610ae6565b506001600255565b6000670de0b6b3a7640000600b5461142b8461238b565b610ec49190614388565b602454604080517fbb7b8b8000000000000000000000000000000000000000000000000000000000815290516000926004926001600160a01b039091169163bb7b8b809180850191602091819003860181865afa15801561149a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114be9190614425565b6114c8919061439f565b905090565b6060601c54600014806114e05750601d54155b1561153a576016805480602002602001604051908101604052809291908181526020018280548015610be857602002820191906000526020600020905b81548152602001906001019080831161151d575050505050905090565b60105467ffffffffffffffff81111561155557611555614243565b60405190808252806020026020018201604052801561157e578160200160208202803683370190505b50905060005b601654811015610deb57601d5461159a82612962565b6005546115a5613219565b6115af9190614375565b6115b99190614388565b6115cb90670de0b6b3a7640000614388565b6115d5919061439f565b601682815481106115e8576115e8614317565b90600052602060002001546115fd91906143da565b82828151811061160f5761160f614317565b602090810291909101015280611624816143ed565b915050611584565b6001600160a01b038216600090815260256020526040812080548291908490811061165957611659614317565b600091825260208083206040805160a08101825260059094029091018054845260018101548484018190526002820154858401526003820154606086015260049091015460808501526001600160a01b0389168552601990925283205491935011156116ca575060208101516116e5565b506001600160a01b0384166000908152601960205260409020545b428260600151116117985760608201516001600160a01b038616600090815260196020526040902054101561178f5760008183606001516117269190614375565b9050600083606001514261173a9190614375565b9050600061174c61044760028561439f565b9050600061175a8382614388565b6117648584614388565b61176e91906143da565b905061177a83856143da565b611784908261439f565b9650505050506117e8565b600092506117e8565b6000808284606001516117ab9190614375565b905060004285606001516117bf9190614375565b905060026117cd82846143da565b6117d7919061439f565b925050506117e481610b64565b9350505b81608001518311156117fc57816080015192505b505092915050565b606060028054036118575760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ae6565b60028055610d42338484613227565b6025602052816000526040600020818154811061188257600080fd5b600091825260209091206005909102018054600182015460028301546003840154600490940154929550909350919085565b6001546001600160a01b031633146119345760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527f2063616e20616363657074206f776e65727368697000000000000000000000006064820152608401610ae6565b600054600154604080516001600160a01b0393841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160018054600080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081166001600160a01b03841617909155169055565b6000670de0b6b3a7640000600b5461142b84610e96565b60005482906001600160a01b03163314806119f557506119f53382610ece565b611a415760405162461bcd60e51b815260206004820152601460248201527f4e6f74206f776e6572206f7220746b6e206d67720000000000000000000000006044820152606401610ae6565b6001600160a01b03831660009081526014602052604090205460ff16808015611a8357506001600160a01b038481166000908152600f60205260409020541633145b80611aa1575080158015611aa157506000546001600160a01b031633145b15611ab757611ab184338561348d565b50505050565b60405162461bcd60e51b815260206004820152601a60248201527f4e6f2076616c696420746f6b656e7320746f207265636f7665720000000000006044820152606401610ae6565b505050565b6001600160a01b0381166000908152601f60205260408120549080611b2884610f73565b6001600160a01b0385166000908152601e602052604081205491935090158015611b6857506001600160a01b0385166000908152601f6020526040902054155b80611b8b57506001600160a01b0385166000908152600c60205260409020548310155b15611b97575081611bca565b6001600160a01b0385166000908152600c6020526040902054600290611bbd90856143da565b611bc7919061439f565b90505b6000915060005b6001600160a01b038616600090815260256020526040902054811015611cd4576001600160a01b0386166000908152602560205260408120805483908110611c1b57611c1b614317565b90600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505090506000611c74888461162c565b60408301519091506000670de0b6b3a7640000611c9187856143da565b611c9b9084614388565b611ca5919061439f565b611caf90836143da565b9050611cbb81886143da565b9650505050508080611ccc906143ed565b915050611bd1565b50509193909250565b6000546001600160a01b0316331480611d095750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b611d555760405162461bcd60e51b815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610ae6565b6001600160a01b03166000908152600d6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b6000600354600b54611dae9190614388565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0384166004820152670de0b6b3a764000090819073c8418af6358ffdda74e09ca9cc3fe03ca6adc5b0906370a0823190602401602060405180830381865afa158015611e2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4f9190614425565b61142b9190614388565b6002805403611eaa5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ae6565b60028055336001611ebd828260006135d6565b600080611eca33876136ef565b915091506000858360400151611ee091906143da565b9050602254611f0490660100000000000090046001600160a01b0316333089613873565b6040805160a081018252888152602085810151818301528183018490526060808701519083015260808087015190830152336000908152602590915291909120805484908110611f5657611f56614317565b90600052602060002090600502016000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040155905050611fa5338760016139e2565b604080518881526020810188905233917f2640b32e7e5d0fa2a21ea06b22fbd75fda0fda384a895a5fdeef43646de47a0c910160405180910390a2505060016002555050505050565b606060028054036120415760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ae6565b6002805561205133836001613227565b600160025592915050565b6001600160a01b0381166000908152600d602052604081205460ff1615612081575090565b506001600160a01b039081166000908152602160205260409020541690565b919050565b60028054036120f65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ae6565b60028055336001612109828260006135d6565b60008061211633876136ef565b915091504285116121695760405162461bcd60e51b815260206004820152601560248201527f4d75737420626520696e207468652066757475726500000000000000000000006044820152606401610ae6565b60004283606001511161217d57600061218d565b42836060015161218d9190614375565b9050600061219b4288614375565b90508181116121ec5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f742073686f7274656e206c6f636b2074696d6500000000000000006044820152606401610ae6565b60085481101561223e5760405162461bcd60e51b815260206004820152601a60248201527f4d696e696d756d207374616b652074696d65206e6f74206d65740000000000006044820152606401610ae6565b6007548111156122905760405162461bcd60e51b815260206004820152601b60248201527f547279696e6720746f206c6f636b20666f7220746f6f206c6f6e6700000000006044820152606401610ae6565b6040518060a00160405280898152602001428152602001856040015181526020018881526020016122c083610b64565b90523360009081526025602052604090208054859081106122e3576122e3614317565b9060005260206000209060050201600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015590505061233333600060016135d6565b6040805189815260208101839052428183015260608101899052905133917fc2cf1aae6decacbc52f96b4e4fec96d4ebab5236e4ed987165537bc463014a43919081900360800190a250506001600255505050505050565b6001600160a01b0381166000908152601e6020526040812054600354670de0b6b3a764000091610ec491614388565b60005484906001600160a01b03163314806123da57506123da3382610ece565b6124265760405162461bcd60e51b815260206004820152601460248201527f4e6f74206f776e6572206f7220746b6e206d67720000000000000000000000006044820152606401610ae6565b6001600160a01b03851660009081526015602052604090205460138054869290811061245457612454614317565b906000526020600020018190555082601160156000886001600160a01b03166001600160a01b03168152602001908152602001600020548154811061249b5761249b614317565b600091825260208083209190910180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039485161790559187168152601590915260409020546012805484929081106124ff576124ff614317565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505050505050565b6001600160a01b0381166000908152600d602052604090205460ff1661259c5760405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642070726f7879000000000000000000000000000000000000006044820152606401610ae6565b6001600160a01b0381166000908152600e6020908152604080832033845290915290205460ff1661260f5760405162461bcd60e51b815260206004820152601d60248201527f50726f787920686173206e6f7420616c6c6f77656420796f75207965740000006044820152606401610ae6565b336000908152602160205260409020546001600160a01b0316801561266957336000908152601e60209081526040808320546001600160a01b03851684529180528220805491929091612663908490614375565b90915550505b33600090815260216020908152604080832080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038716908117909155601e83528184205490845291805282208054919290916126d09084906143da565b90915550505050565b60005482906001600160a01b03163314806126f957506126f93382610ece565b6127455760405162461bcd60e51b815260206004820152601460248201527f4e6f74206f776e6572206f7220746b6e206d67720000000000000000000000006044820152606401610ae6565b506001600160a01b039182166000908152600f6020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001691909216179055565b6000546001600160a01b03163314806127b85750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b6128045760405162461bcd60e51b815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610ae6565b602280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b336000908152600d602052604090205460ff166128955760405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642070726f7879000000000000000000000000000000000000006044820152606401610ae6565b336000818152600e602090815260408083206001600160a01b038681168552908352818420805460ff8116157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909116179055602190925290912054160361295f576001600160a01b038116600090815260216020908152604080832080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055601e8252808320543384529180528220805491929091612959908490614375565b90915550505b50565b6000806011838154811061297857612978614317565b6000918252602090912001546001600160a01b031690508015612a3957670de0b6b3a7640000601a84815481106129b1576129b1614317565b9060005260206000200154826001600160a01b0316630a3be7576040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129fa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a1e9190614425565b612a289190614388565b612a32919061439f565b9150610a91565b60138381548110612a4c57612a4c614317565b9060005260206000200154915050919050565b60005b601154811015612c0a57600060118281548110612a8157612a81614317565b6000918252602090912001546001600160a01b031690508015612bf7578280612ac65750601b8281548110612ab857612ab8614317565b906000526020600020015442115b15612bf7576040517f6472eee10000000000000000000000000000000000000000000000000000000081523060048201524260248201526001600160a01b03821690636472eee1906044016020604051808303816000875af1158015612b30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b549190614425565b601a8381548110612b6757612b67614317565b9060005260206000200181905550806001600160a01b031663513872bd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612bb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bd79190614425565b601b8381548110612bea57612bea614317565b6000918252602090912001555b5080612c02816143ed565b915050612a62565b5050565b6000546001600160a01b0316331480612c3a5750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b612c865760405162461bcd60e51b815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610ae6565b8051670de0b6b3a76400001115612cdf5760405162461bcd60e51b815260206004820152601360248201527f4d757374206265203e3d204d554c2050524543000000000000000000000000006044820152606401610ae6565b608081015160011115612d345760405162461bcd60e51b815260206004820152600c60248201527f4d757374206265203e3d203100000000000000000000000000000000000000006044820152606401610ae6565b80516006556020810151600a556040810151600b556060810151600955608081015160075560a00151600855565b612d6c6000612a5f565b612d74611435565b6003556004544210612d8a57612d88613b07565b565b612d88613def565b60008180612dab5750602254640100000000900460ff16155b15612dc257612dbc85856001613227565b50612dcf565b612dcf85600160006135d6565b600080612ddc87866136ef565b91509150816060015142101580612dfa575060225460ff1615156001145b612e465760405162461bcd60e51b815260206004820152601660248201527f5374616b65206973207374696c6c206c6f636b656421000000000000000000006044820152606401610ae6565b60408201518015612f2457602254612e7290660100000000000090046001600160a01b0316888361348d565b6001600160a01b0388166000908152602560205260409020805483908110612e9c57612e9c614317565b600091825260208220600590910201818155600181018290556002810182905560038101829055600401819055612ed690899083906139e2565b60408051828152602081018890526001600160a01b03898116828401529151918a16917f1d9308f6b22a2754a1c622bb30889e8f8f956c83e524d039e9d65d5f052eb9089181900360600190a25b979650505050505050565b6000818310612f3e5781612f40565b825b9392505050565b6000856001612f58828260006135d6565b6022546301000000900460ff1615612fb25760405162461bcd60e51b815260206004820152600e60248201527f5374616b696e67207061757365640000000000000000000000000000000000006044820152606401610ae6565b6008548510156130045760405162461bcd60e51b815260206004820152601a60248201527f4d696e696d756d207374616b652074696d65206e6f74206d65740000000000006044820152606401610ae6565b6007548511156130565760405162461bcd60e51b815260206004820152601b60248201527f547279696e6720746f206c6f636b20666f7220746f6f206c6f6e6700000000006044820152606401610ae6565b60225461307890660100000000000090046001600160a01b0316883089613873565b600061308386610b64565b6001600160a01b038a166000908152601e602090815260408083205490517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060608f901b169281019290925260348201899052605482018b9052607482015291925090609401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825280516020918201206001600160a01b038e1660009081526025835283902060a0850184528185529184018a90529183018b9052909250906060810161315c8a8a6143da565b815260209081018590528254600181810185556000948552938290208351600590920201908155908201518184015560408201516002820155606082015160038201556080909101516004909101556131b8908b908a906139e2565b60408051898152602081018990529081018290526001600160a01b038a811660608301528b16907ff400e72e69ef4402819dfc57eeddc66f5eb69bf405e0e8098b1946ec1ac14a229060800160405180910390a29998505050505050505050565b60006114c842600454612f2f565b6060836001613238828260006135d6565b6001600160a01b038616600090815260196020526040902042905560225462010000900460ff16156132ac5760405162461bcd60e51b815260206004820152601960248201527f5265776172647320636f6c6c656374696f6e20706175736564000000000000006044820152606401610ae6565b60105467ffffffffffffffff8111156132c7576132c7614243565b6040519080825280602002602001820160405280156132f0578160200160208202803683370190505b50925060005b601054811015613483576001600160a01b0387166000908152601860209081526040808320848452909152902054845185908390811061333857613338614317565b6020908102919091018101919091526001600160a01b0388166000908152601882526040808220848352909252908120819055845185908390811061337f5761337f614317565b60200260200101511115613471576133e1601082815481106133a3576133a3614317565b9060005260206000200160009054906101000a90046001600160a01b0316878684815181106133d4576133d4614317565b602002602001015161348d565b866001600160a01b03167f1d2f2ca53af5d2f333bd32fdd45f9c52ad8ebe31414f7792912077fcb3876dff85838151811061341e5761341e614317565b60200260200101516010848154811061343957613439614317565b60009182526020918290200154604080519384526001600160a01b03918216928401929092528a169082015260600160405180910390a25b8061347b816143ed565b9150506132f6565b5050509392505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905291516000928392908716916135179190614462565b6000604051808303816000865af19150503d8060008114613554576040519150601f19603f3d011682016040523d82523d6000602084013e613559565b606091505b5091509150818015613583575080511580613583575080806020019051810190613583919061447e565b6135cf5760405162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c4544006044820152606401610ae6565b5050505050565b81156135e4576135e4612d62565b801561360d576135f383610f73565b6001600160a01b0384166000908152600c60205260409020555b6001600160a01b03831615611aff57600080600061362a86611b04565b92509250925061363986613e62565b6001600160a01b0386166000908152600c602052604090208290558281106136a35760006136678483614375565b905080601d5461367791906143da565b601d5561368481856143da565b6001600160a01b0388166000908152601f6020526040902055506136e7565b60006136af8285614375565b905080601d546136bf9190614375565b601d556136cc8185614375565b6001600160a01b0388166000908152601f6020526040902055505b505050505050565b6137246040518060a0016040528060008019168152602001600081526020016000815260200160008152602001600081525090565b6000805b6001600160a01b03851660009081526025602052604090205481101561381b576001600160a01b038516600090815260256020526040902080548290811061377257613772614317565b9060005260206000209060050201600001548403613809576001600160a01b03851660009081526025602052604090208054829081106137b4576137b4614317565b90600052602060002090600502016040518060a001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481525050925080915061381b565b80613813816143ed565b915050613728565b508151831461386c5760405162461bcd60e51b815260206004820152600f60248201527f5374616b65206e6f7420666f756e6400000000000000000000000000000000006044820152606401610ae6565b9250929050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905291516000928392908816916139059190614462565b6000604051808303816000865af19150503d8060008114613942576040519150601f19603f3d011682016040523d82523d6000602084013e613947565b606091505b5091509150818015613971575080511580613971575080806020019051810190613971919061447e565b6136e75760405162461bcd60e51b8152602060048201526024808201527f5472616e7366657248656c7065723a205452414e534645525f46524f4d5f464160448201527f494c4544000000000000000000000000000000000000000000000000000000006064820152608401610ae6565b60006139ed8461205c565b90508115613a7a5782601c6000828254613a0791906143da565b90915550506001600160a01b0384166000908152601e602052604081208054859290613a349084906143da565b90915550506001600160a01b03811615613a75576001600160a01b038116600090815260208052604081208054859290613a6f9084906143da565b90915550505b613afa565b82601c6000828254613a8c9190614375565b90915550506001600160a01b0384166000908152601e602052604081208054859290613ab9908490614375565b90915550506001600160a01b03811615613afa576001600160a01b038116600090815260208052604081208054859290613af4908490614375565b90915550505b611ab184600060016135d6565b613b0f613def565b60005b601254811015613be657600060128281548110613b3157613b31614317565b6000918252602090912001546001600160a01b031690508015613bd3576040517f092193ab0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b0382169063092193ab9060240160408051808303816000875af1158015613bac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bd0919061449b565b50505b5080613bde816143ed565b915050613b12565b50600062093a8060045442613bfb9190614375565b613c05919061439f565b905060005b601054811015613dc15760108181548110613c2757613c27614317565b6000918252602090912001546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015613c91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613cb59190614425565b613cc08360016143da565b62093a80613ccd84612962565b613cd79190614388565b613ce19190614388565b111560108281548110613cf657613cf6614317565b60009182526020918290200154604080517f4e6f7420656e6f7567682072657761726420746f6b656e7320617661696c6162938101939093527f6c653a20000000000000000000000000000000000000000000000000000000009083015260601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016604482015260580160405160208183030381529060405290613dae5760405162461bcd60e51b8152600401610ae691906144bf565b5080613db9816143ed565b915050613c0a565b5062093a80613dd18260016143da565b613ddb9190614388565b600454613de891906143da565b60045561295f5b6000613df96114cd565b905060005b601654811015613e5357818181518110613e1a57613e1a614317565b602002602001015160168281548110613e3557613e35614317565b60009182526020909120015580613e4b816143ed565b915050613dfe565b50613e5c613219565b60055550565b6001600160a01b0381161561295f576000613e7c8261093f565b905060005b8151811015613edd57818181518110613e9c57613e9c614317565b6020908102919091018101516001600160a01b0385166000908152601883526040808220858352909352919091205580613ed5816143ed565b915050613e81565b5060005b8151811015611aff5760168181548110613efd57613efd614317565b60009182526020808320909101546001600160a01b038616835260178252604080842085855290925291205580613f33816143ed565b915050613ee1565b80356001600160a01b03811681146120a057600080fd5b600060208284031215613f6457600080fd5b612f4082613f3b565b6020808252825182820181905260009190848201906040850190845b81811015613fa557835183529284019291840191600101613f89565b50909695505050505050565b801515811461295f57600080fd5b600080600060608486031215613fd457600080fd5b83359250613fe460208501613f3b565b91506040840135613ff481613fb1565b809150509250925092565b60006020828403121561401157600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b81811015613fa55783516001600160a01b031683529284019291840191600101614034565b6000806040838503121561406c57600080fd5b50508035926020909101359150565b602080825282518282018190526000919060409081850190868401855b828110156140dc5781518051855286810151878601528581015186860152606080820151908601526080908101519085015260a09093019290850190600101614098565b5091979650505050505050565b600080604083850312156140fc57600080fd5b61410583613f3b565b915061411360208401613f3b565b90509250929050565b6000806000806080858703121561413257600080fd5b843561413d81613fb1565b9350602085013561414d81613fb1565b9250604085013561415d81613fb1565b9150606085013561416d81613fb1565b939692955090935050565b6000806040838503121561418b57600080fd5b61419483613f3b565b946020939093013593505050565b600080604083850312156141b557600080fd5b6141be83613f3b565b915060208301356141ce81613fb1565b809150509250929050565b600080600080608085870312156141ef57600080fd5b6141f885613f3b565b93506020850135925061420d60408601613f3b565b915061421b60608601613f3b565b905092959194509250565b60006020828403121561423857600080fd5b8135612f4081613fb1565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060c0828403121561428457600080fd5b82601f83011261429357600080fd5b60405160c0810181811067ffffffffffffffff821117156142dd577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040528060c08401858111156142f257600080fd5b845b8181101561430c5780358352602092830192016142f4565b509195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81810381811115610b8a57610b8a614346565b8082028115828204841417610b8a57610b8a614346565b6000826143d5577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b80820180821115610b8a57610b8a614346565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361441e5761441e614346565b5060010190565b60006020828403121561443757600080fd5b5051919050565b60005b83811015614459578181015183820152602001614441565b50506000910152565b6000825161447481846020870161443e565b9190910192915050565b60006020828403121561449057600080fd5b8151612f4081613fb1565b600080604083850312156144ae57600080fd5b505080516020909101519092909150565b60208152600082518060208401526144de81604085016020870161443e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220aeb58a7945b3dd4205311f4de16583bbe3f00cda375225ebf89e66000412177864736f6c63430008130033
Verified Source Code Partial Match
Compiler: v0.8.19+commit.7dd6d404
EVM: paris
Optimization: Yes (10000 runs)
FraxUnifiedFarm_ERC20_Convex_FRAXBP_Stable.sol 2910 lines
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.8.0;
// Sources flattened with hardhat v2.16.1 https://hardhat.org
// File contracts/Common/Context.sol
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return payable(msg.sender);
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
// File contracts/Math/SafeMath.sol
/**
* @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;
}
}
// File contracts/ERC20/IERC20.sol
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/
interface IERC20 {
/**
* @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);
/**
* @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);
}
// File contracts/Uniswap_V3/pool/IUniswapV3PoolActions.sol
/// @title Permissionless pool actions
/// @notice Contains pool methods that can be called by anyone
interface IUniswapV3PoolActions {
/// @notice Sets the initial price for the pool
/// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value
/// @param sqrtPriceX96 the initial sqrt price of the pool as a Q64.96
function initialize(uint160 sqrtPriceX96) external;
/// @notice Adds liquidity for the given recipient/tickLower/tickUpper position
/// @dev The caller of this method receives a callback in the form of IUniswapV3MintCallback#uniswapV3MintCallback
/// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends
/// on tickLower, tickUpper, the amount of liquidity, and the current price.
/// @param recipient The address for which the liquidity will be created
/// @param tickLower The lower tick of the position in which to add liquidity
/// @param tickUpper The upper tick of the position in which to add liquidity
/// @param amount The amount of liquidity to mint
/// @param data Any data that should be passed through to the callback
/// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback
/// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback
function mint(
address recipient,
int24 tickLower,
int24 tickUpper,
uint128 amount,
bytes calldata data
) external returns (uint256 amount0, uint256 amount1);
/// @notice Collects tokens owed to a position
/// @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity.
/// Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or
/// amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the
/// actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.
/// @param recipient The address which should receive the fees collected
/// @param tickLower The lower tick of the position for which to collect fees
/// @param tickUpper The upper tick of the position for which to collect fees
/// @param amount0Requested How much token0 should be withdrawn from the fees owed
/// @param amount1Requested How much token1 should be withdrawn from the fees owed
/// @return amount0 The amount of fees collected in token0
/// @return amount1 The amount of fees collected in token1
function collect(
address recipient,
int24 tickLower,
int24 tickUpper,
uint128 amount0Requested,
uint128 amount1Requested
) external returns (uint128 amount0, uint128 amount1);
/// @notice Burn liquidity from the sender and account tokens owed for the liquidity to the position
/// @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0
/// @dev Fees must be collected separately via a call to #collect
/// @param tickLower The lower tick of the position for which to burn liquidity
/// @param tickUpper The upper tick of the position for which to burn liquidity
/// @param amount How much liquidity to burn
/// @return amount0 The amount of token0 sent to the recipient
/// @return amount1 The amount of token1 sent to the recipient
function burn(
int24 tickLower,
int24 tickUpper,
uint128 amount
) external returns (uint256 amount0, uint256 amount1);
/// @notice Swap token0 for token1, or token1 for token0
/// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback
/// @param recipient The address to receive the output of the swap
/// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0
/// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)
/// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this
/// value after the swap. If one for zero, the price cannot be greater than this value after the swap
/// @param data Any data to be passed through to the callback
/// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive
/// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive
function swap(
address recipient,
bool zeroForOne,
int256 amountSpecified,
uint160 sqrtPriceLimitX96,
bytes calldata data
) external returns (int256 amount0, int256 amount1);
/// @notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback
/// @dev The caller of this method receives a callback in the form of IUniswapV3FlashCallback#uniswapV3FlashCallback
/// @dev Can be used to donate underlying tokens pro-rata to currently in-range liquidity providers by calling
/// with 0 amount{0,1} and sending the donation amount(s) from the callback
/// @param recipient The address which will receive the token0 and token1 amounts
/// @param amount0 The amount of token0 to send
/// @param amount1 The amount of token1 to send
/// @param data Any data to be passed through to the callback
function flash(
address recipient,
uint256 amount0,
uint256 amount1,
bytes calldata data
) external;
/// @notice Increase the maximum number of price and liquidity observations that this pool will store
/// @dev This method is no-op if the pool already has an observationCardinalityNext greater than or equal to
/// the input observationCardinalityNext.
/// @param observationCardinalityNext The desired minimum number of observations for the pool to store
function increaseObservationCardinalityNext(uint16 observationCardinalityNext) external;
}
// File contracts/Uniswap_V3/pool/IUniswapV3PoolDerivedState.sol
/// @title Pool state that is not stored
/// @notice Contains view functions to provide information about the pool that is computed rather than stored on the
/// blockchain. The functions here may have variable gas costs.
interface IUniswapV3PoolDerivedState {
/// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp
/// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing
/// the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick,
/// you must call it with secondsAgos = [3600, 0].
/// @dev The time weighted average tick represents the geometric time weighted average price of the pool, in
/// log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio.
/// @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned
/// @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp
/// @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block
/// timestamp
function observe(uint32[] calldata secondsAgos)
external
view
returns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s);
/// @notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range
/// @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed.
/// I.e., snapshots cannot be compared if a position is not held for the entire period between when the first
/// snapshot is taken and the second snapshot is taken.
/// @param tickLower The lower tick of the range
/// @param tickUpper The upper tick of the range
/// @return tickCumulativeInside The snapshot of the tick accumulator for the range
/// @return secondsPerLiquidityInsideX128 The snapshot of seconds per liquidity for the range
/// @return secondsInside The snapshot of seconds per liquidity for the range
function snapshotCumulativesInside(int24 tickLower, int24 tickUpper)
external
view
returns (
int56 tickCumulativeInside,
uint160 secondsPerLiquidityInsideX128,
uint32 secondsInside
);
}
// File contracts/Uniswap_V3/pool/IUniswapV3PoolEvents.sol
/// @title Events emitted by a pool
/// @notice Contains all events emitted by the pool
interface IUniswapV3PoolEvents {
/// @notice Emitted exactly once by a pool when #initialize is first called on the pool
/// @dev Mint/Burn/Swap cannot be emitted by the pool before Initialize
/// @param sqrtPriceX96 The initial sqrt price of the pool, as a Q64.96
/// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool
event Initialize(uint160 sqrtPriceX96, int24 tick);
/// @notice Emitted when liquidity is minted for a given position
/// @param sender The address that minted the liquidity
/// @param owner The owner of the position and recipient of any minted liquidity
/// @param tickLower The lower tick of the position
/// @param tickUpper The upper tick of the position
/// @param amount The amount of liquidity minted to the position range
/// @param amount0 How much token0 was required for the minted liquidity
/// @param amount1 How much token1 was required for the minted liquidity
event Mint(
address sender,
address indexed owner,
int24 indexed tickLower,
int24 indexed tickUpper,
uint128 amount,
uint256 amount0,
uint256 amount1
);
/// @notice Emitted when fees are collected by the owner of a position
/// @dev Collect events may be emitted with zero amount0 and amount1 when the caller chooses not to collect fees
/// @param owner The owner of the position for which fees are collected
/// @param tickLower The lower tick of the position
/// @param tickUpper The upper tick of the position
/// @param amount0 The amount of token0 fees collected
/// @param amount1 The amount of token1 fees collected
event Collect(
address indexed owner,
address recipient,
int24 indexed tickLower,
int24 indexed tickUpper,
uint128 amount0,
uint128 amount1
);
/// @notice Emitted when a position's liquidity is removed
/// @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect
/// @param owner The owner of the position for which liquidity is removed
/// @param tickLower The lower tick of the position
/// @param tickUpper The upper tick of the position
/// @param amount The amount of liquidity to remove
/// @param amount0 The amount of token0 withdrawn
/// @param amount1 The amount of token1 withdrawn
event Burn(
address indexed owner,
int24 indexed tickLower,
int24 indexed tickUpper,
uint128 amount,
uint256 amount0,
uint256 amount1
);
/// @notice Emitted by the pool for any swaps between token0 and token1
/// @param sender The address that initiated the swap call, and that received the callback
/// @param recipient The address that received the output of the swap
/// @param amount0 The delta of the token0 balance of the pool
/// @param amount1 The delta of the token1 balance of the pool
/// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96
/// @param liquidity The liquidity of the pool after the swap
/// @param tick The log base 1.0001 of price of the pool after the swap
event Swap(
address indexed sender,
address indexed recipient,
int256 amount0,
int256 amount1,
uint160 sqrtPriceX96,
uint128 liquidity,
int24 tick
);
/// @notice Emitted by the pool for any flashes of token0/token1
/// @param sender The address that initiated the swap call, and that received the callback
/// @param recipient The address that received the tokens from flash
/// @param amount0 The amount of token0 that was flashed
/// @param amount1 The amount of token1 that was flashed
/// @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee
/// @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee
event Flash(
address indexed sender,
address indexed recipient,
uint256 amount0,
uint256 amount1,
uint256 paid0,
uint256 paid1
);
/// @notice Emitted by the pool for increases to the number of observations that can be stored
/// @dev observationCardinalityNext is not the observation cardinality until an observation is written at the index
/// just before a mint/swap/burn.
/// @param observationCardinalityNextOld The previous value of the next observation cardinality
/// @param observationCardinalityNextNew The updated value of the next observation cardinality
event IncreaseObservationCardinalityNext(
uint16 observationCardinalityNextOld,
uint16 observationCardinalityNextNew
);
/// @notice Emitted when the protocol fee is changed by the pool
/// @param feeProtocol0Old The previous value of the token0 protocol fee
/// @param feeProtocol1Old The previous value of the token1 protocol fee
/// @param feeProtocol0New The updated value of the token0 protocol fee
/// @param feeProtocol1New The updated value of the token1 protocol fee
event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New);
/// @notice Emitted when the collected protocol fees are withdrawn by the factory owner
/// @param sender The address that collects the protocol fees
/// @param recipient The address that receives the collected protocol fees
/// @param amount0 The amount of token0 protocol fees that is withdrawn
/// @param amount0 The amount of token1 protocol fees that is withdrawn
event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1);
}
// File contracts/Uniswap_V3/pool/IUniswapV3PoolImmutables.sol
/// @title Pool state that never changes
/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values
interface IUniswapV3PoolImmutables {
/// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface
/// @return The contract address
function factory() external view returns (address);
/// @notice The first of the two tokens of the pool, sorted by address
/// @return The token contract address
function token0() external view returns (address);
/// @notice The second of the two tokens of the pool, sorted by address
/// @return The token contract address
function token1() external view returns (address);
/// @notice The pool's fee in hundredths of a bip, i.e. 1e-6
/// @return The fee
function fee() external view returns (uint24);
/// @notice The pool tick spacing
/// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive
/// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ...
/// This value is an int24 to avoid casting even though it is always positive.
/// @return The tick spacing
function tickSpacing() external view returns (int24);
/// @notice The maximum amount of position liquidity that can use any tick in the range
/// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and
/// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool
/// @return The max amount of liquidity per tick
function maxLiquidityPerTick() external view returns (uint128);
}
// File contracts/Uniswap_V3/pool/IUniswapV3PoolOwnerActions.sol
/// @title Permissioned pool actions
/// @notice Contains pool methods that may only be called by the factory owner
interface IUniswapV3PoolOwnerActions {
/// @notice Set the denominator of the protocol's % share of the fees
/// @param feeProtocol0 new protocol fee for token0 of the pool
/// @param feeProtocol1 new protocol fee for token1 of the pool
function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external;
/// @notice Collect the protocol fee accrued to the pool
/// @param recipient The address to which collected protocol fees should be sent
/// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1
/// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0
/// @return amount0 The protocol fee collected in token0
/// @return amount1 The protocol fee collected in token1
function collectProtocol(
address recipient,
uint128 amount0Requested,
uint128 amount1Requested
) external returns (uint128 amount0, uint128 amount1);
}
// File contracts/Uniswap_V3/pool/IUniswapV3PoolState.sol
/// @title Pool state that can change
/// @notice These methods compose the pool's state, and can change with any frequency including multiple times
/// per transaction
interface IUniswapV3PoolState {
/// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
/// when accessed externally.
/// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value
/// tick The current tick of the pool, i.e. according to the last tick transition that was run.
/// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(sqrtPriceX96) if the price is on a tick
/// boundary.
/// observationIndex The index of the last oracle observation that was written,
/// observationCardinality The current maximum number of observations stored in the pool,
/// observationCardinalityNext The next maximum number of observations, to be updated when the observation.
/// feeProtocol The protocol fee for both tokens of the pool.
/// Encoded as two 4 bit values, where the protocol fee of token1 is shifted 4 bits and the protocol fee of token0
/// is the lower 4 bits. Used as the denominator of a fraction of the swap fee, e.g. 4 means 1/4th of the swap fee.
/// unlocked Whether the pool is currently locked to reentrancy
function slot0()
external
view
returns (
uint160 sqrtPriceX96,
int24 tick,
uint16 observationIndex,
uint16 observationCardinality,
uint16 observationCardinalityNext,
uint8 feeProtocol,
bool unlocked
);
/// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool
/// @dev This value can overflow the uint256
function feeGrowthGlobal0X128() external view returns (uint256);
/// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool
/// @dev This value can overflow the uint256
function feeGrowthGlobal1X128() external view returns (uint256);
/// @notice The amounts of token0 and token1 that are owed to the protocol
/// @dev Protocol fees will never exceed uint128 max in either token
function protocolFees() external view returns (uint128 token0, uint128 token1);
/// @notice The currently in range liquidity available to the pool
/// @dev This value has no relationship to the total liquidity across all ticks
function liquidity() external view returns (uint128);
/// @notice Look up information about a specific tick in the pool
/// @param tick The tick to look up
/// @return liquidityGross the total amount of position liquidity that uses the pool either as tick lower or
/// tick upper,
/// liquidityNet how much liquidity changes when the pool price crosses the tick,
/// feeGrowthOutside0X128 the fee growth on the other side of the tick from the current tick in token0,
/// feeGrowthOutside1X128 the fee growth on the other side of the tick from the current tick in token1,
/// tickCumulativeOutside the cumulative tick value on the other side of the tick from the current tick
/// secondsPerLiquidityOutsideX128 the seconds spent per liquidity on the other side of the tick from the current tick,
/// secondsOutside the seconds spent on the other side of the tick from the current tick,
/// initialized Set to true if the tick is initialized, i.e. liquidityGross is greater than 0, otherwise equal to false.
/// Outside values can only be used if the tick is initialized, i.e. if liquidityGross is greater than 0.
/// In addition, these values are only relative and must be used only in comparison to previous snapshots for
/// a specific position.
function ticks(int24 tick)
external
view
returns (
uint128 liquidityGross,
int128 liquidityNet,
uint256 feeGrowthOutside0X128,
uint256 feeGrowthOutside1X128,
int56 tickCumulativeOutside,
uint160 secondsPerLiquidityOutsideX128,
uint32 secondsOutside,
bool initialized
);
/// @notice Returns 256 packed tick initialized boolean values. See TickBitmap for more information
function tickBitmap(int16 wordPosition) external view returns (uint256);
/// @notice Returns the information about a position by the position's key
/// @param key The position's key is a hash of a preimage composed by the owner, tickLower and tickUpper
/// @return _liquidity The amount of liquidity in the position,
/// Returns feeGrowthInside0LastX128 fee growth of token0 inside the tick range as of the last mint/burn/poke,
/// Returns feeGrowthInside1LastX128 fee growth of token1 inside the tick range as of the last mint/burn/poke,
/// Returns tokensOwed0 the computed amount of token0 owed to the position as of the last mint/burn/poke,
/// Returns tokensOwed1 the computed amount of token1 owed to the position as of the last mint/burn/poke
function positions(bytes32 key)
external
view
returns (
uint128 _liquidity,
uint256 feeGrowthInside0LastX128,
uint256 feeGrowthInside1LastX128,
uint128 tokensOwed0,
uint128 tokensOwed1
);
/// @notice Returns data about a specific observation index
/// @param index The element of the observations array to fetch
/// @dev You most likely want to use #observe() instead of this method to get an observation as of some amount of time
/// ago, rather than at a specific index in the array.
/// @return blockTimestamp The timestamp of the observation,
/// Returns tickCumulative the tick multiplied by seconds elapsed for the life of the pool as of the observation timestamp,
/// Returns secondsPerLiquidityCumulativeX128 the seconds per in range liquidity for the life of the pool as of the observation timestamp,
/// Returns initialized whether the observation has been initialized and the values are safe to use
function observations(uint256 index)
external
view
returns (
uint32 blockTimestamp,
int56 tickCumulative,
uint160 secondsPerLiquidityCumulativeX128,
bool initialized
);
}
// File contracts/Uniswap_V3/IUniswapV3Pool.sol
/// @title The interface for a Uniswap V3 Pool
/// @notice A Uniswap pool facilitates swapping and automated market making between any two assets that strictly conform
/// to the ERC20 specification
/// @dev The pool interface is broken up into many smaller pieces
interface IUniswapV3Pool is
IUniswapV3PoolImmutables,
IUniswapV3PoolState,
IUniswapV3PoolDerivedState,
IUniswapV3PoolActions,
IUniswapV3PoolOwnerActions,
IUniswapV3PoolEvents
{
}
// File contracts/Misc_AMOs/bunni/IBunniLens.sol
interface IBunniLens {
struct BunniKey {
IUniswapV3Pool pool;
int24 tickLower;
int24 tickUpper;
}
function getReserves (BunniKey calldata key) external view returns (uint112 reserve0, uint112 reserve1);
function hub () external view returns (address);
function pricePerFullShare (BunniKey calldata key) external view returns (uint128 liquidity, uint256 amount0, uint256 amount1);
}
// File contracts/Curve/ICurvefrxETHETHPool.sol
interface ICurvefrxETHETHPool {
function A() external view returns (uint256);
function A_precise() external view returns (uint256);
function get_p() external view returns (uint256);
function price_oracle() external view returns (uint256);
function get_virtual_price() external view returns (uint256);
function calc_token_amount(uint256[2] memory _amounts, bool _is_deposit) external view returns (uint256);
function add_liquidity(uint256[2] memory _amounts, uint256 _min_mint_amount) external returns (uint256);
function get_dy(int128 i, int128 j, uint256 _dx) external view returns (uint256);
function exchange(int128 i, int128 j, uint256 _dx, uint256 _min_dy) external payable returns (uint256);
function remove_liquidity(uint256 _amount, uint256[2] memory _min_amounts) external returns (uint256[2] memory);
function remove_liquidity_imbalance(uint256[2] memory _amounts, uint256 _max_burn_amount) external returns (uint256);
function calc_withdraw_one_coin(uint256 _token_amount, int128 i) external view returns (uint256);
function remove_liquidity_one_coin(uint256 _token_amount, int128 i, uint256 _min_amount) external returns (uint256);
function ramp_A(uint256 _future_A, uint256 _future_time) external;
function stop_ramp_A() external;
function commit_new_fee(uint256 _new_fee, uint256 _new_admin_fee) external;
function apply_new_fee() external;
function revert_new_parameters() external;
function set_ma_exp_time(uint256 _ma_exp_time) external;
function commit_transfer_ownership(address _owner) external;
function apply_transfer_ownership() external;
function revert_transfer_ownership() external;
function admin_balances(uint256 i) external view returns (uint256);
function withdraw_admin_fees() external;
function donate_admin_fees() external;
function kill_me() external;
function unkill_me() external;
function coins(uint256 arg0) external view returns (address);
function balances(uint256 arg0) external view returns (uint256);
function fee() external view returns (uint256);
function admin_fee() external view returns (uint256);
function owner() external view returns (address);
function lp_token() external view returns (address);
function initial_A() external view returns (uint256);
function future_A() external view returns (uint256);
function initial_A_time() external view returns (uint256);
function future_A_time() external view returns (uint256);
function admin_actions_deadline() external view returns (uint256);
function transfer_ownership_deadline() external view returns (uint256);
function future_fee() external view returns (uint256);
function future_admin_fee() external view returns (uint256);
function future_owner() external view returns (address);
function ma_exp_time() external view returns (uint256);
function ma_last_time() external view returns (uint256);
}
// File contracts/Misc_AMOs/convex/IConvexStakingWrapperFrax.sol
interface IConvexStakingWrapperFrax {
function addRewards ( ) external;
function addTokenReward ( address _token ) external;
function allowance ( address owner, address spender ) external view returns ( uint256 );
function approve ( address spender, uint256 amount ) external returns ( bool );
function balanceOf ( address account ) external view returns ( uint256 );
function collateralVault ( ) external view returns ( address );
function convexBooster ( ) external view returns ( address );
function convexPool ( ) external view returns ( address );
function convexPoolId ( ) external view returns ( uint256 );
function convexToken ( ) external view returns ( address );
function crv ( ) external view returns ( address );
function curveToken ( ) external view returns ( address );
function cvx ( ) external view returns ( address );
function decimals ( ) external view returns ( uint8 );
function decreaseAllowance ( address spender, uint256 subtractedValue ) external returns ( bool );
function deposit ( uint256 _amount, address _to ) external;
function distroContract ( ) external view returns ( address );
function distroImplementation ( ) external view returns ( address );
function distroSealed ( ) external view returns ( bool );
function earmarkRewards ( ) external returns ( bool );
function factory ( ) external view returns ( address );
function getReward ( address _account, address _forwardTo ) external;
function getReward ( address _account ) external;
function increaseAllowance ( address spender, uint256 addedValue ) external returns ( bool );
function initialize ( uint256 _poolId ) external;
function invalidateReward ( address _token ) external;
function isInit ( ) external view returns ( bool );
function isShutdown ( ) external view returns ( bool );
function name ( ) external view returns ( string memory );
function owner ( ) external view returns ( address );
function proxyFactory ( ) external view returns ( address );
function registeredRewards ( address ) external view returns ( uint256 );
function renounceOwnership ( ) external;
function rewardHook ( ) external view returns ( address );
function rewardLength ( ) external view returns ( uint256 );
function rewardRedirect ( address ) external view returns ( address );
function rewards ( uint256 ) external view returns ( address reward_token, address reward_pool, uint256 reward_integral, uint256 reward_remaining );
function sealDistributor ( ) external;
function setApprovals ( ) external;
function setDistributor ( address _distro ) external;
function setHook ( address _hook ) external;
function setRewardRedirect ( address _to ) external;
function setVault ( address _vault ) external;
function shutdown ( ) external;
function stake ( uint256 _amount, address _to ) external;
function symbol ( ) external view returns ( string memory );
function totalBalanceOf ( address _account ) external view returns ( uint256 );
function totalSupply ( ) external view returns ( uint256 );
function transfer ( address recipient, uint256 amount ) external returns ( bool );
function transferFrom ( address sender, address recipient, uint256 amount ) external returns ( bool );
function transferOwnership ( address newOwner ) external;
function user_checkpoint ( address _account ) external returns ( bool );
function withdraw ( uint256 _amount ) external;
function withdrawAndUnwrap ( uint256 _amount ) external;
}
// File contracts/Misc_AMOs/curve/I2pool.sol
interface I2pool {
function decimals() external view returns (uint256);
function transfer(address _to, uint256 _value) external returns (bool);
function transferFrom(address _from, address _to, uint256 _value) external returns (bool);
function approve(address _spender, uint256 _value) external returns (bool);
function A() external view returns (uint256);
function A_precise() external view returns (uint256);
function get_virtual_price() external view returns (uint256);
function lp_price() external view returns (uint256);
function price_oracle() external view returns (uint256);
function calc_token_amount(uint256[2] memory _amounts, bool _is_deposit) external view returns (uint256);
function add_liquidity(uint256[2] memory _amounts, uint256 _min_mint_amount) external returns (uint256);
function get_dy(int128 i, int128 j, uint256 _dx) external view returns (uint256);
function exchange(int128 i, int128 j, uint256 _dx, uint256 _min_dy) external returns (uint256);
function remove_liquidity(uint256 _amount, uint256[2] memory _min_amounts) external returns (uint256[2] memory);
function remove_liquidity_imbalance(uint256[2] memory _amounts, uint256 _max_burn_amount) external returns (uint256);
function calc_withdraw_one_coin(uint256 _token_amount, int128 i) external view returns (uint256);
function remove_liquidity_one_coin(uint256 _token_amount, int128 i, uint256 _min_amount) external returns (uint256);
function ramp_A(uint256 _future_A, uint256 _future_time) external;
function stop_ramp_A() external;
function commit_new_fee(uint256 _new_fee, uint256 _new_admin_fee) external;
function apply_new_fee() external;
function revert_new_parameters() external;
function commit_transfer_ownership(address _owner) external;
function apply_transfer_ownership() external;
function revert_transfer_ownership() external;
function admin_balances(uint256 i) external view returns (uint256);
function withdraw_admin_fees() external;
function donate_admin_fees() external;
function kill_me() external;
function unkill_me() external;
function coins(uint256 arg0) external view returns (address);
function balances(uint256 arg0) external view returns (uint256);
function fee() external view returns (uint256);
function admin_fee() external view returns (uint256);
function owner() external view returns (address);
function initial_A() external view returns (uint256);
function future_A() external view returns (uint256);
function initial_A_time() external view returns (uint256);
function future_A_time() external view returns (uint256);
function admin_actions_deadline() external view returns (uint256);
function transfer_ownership_deadline() external view returns (uint256);
function future_fee() external view returns (uint256);
function future_admin_fee() external view returns (uint256);
function future_owner() external view returns (address);
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function balanceOf(address arg0) external view returns (uint256);
function allowance(address arg0, address arg1) external view returns (uint256);
function totalSupply() external view returns (uint256);
}
// File contracts/Misc_AMOs/curve/I2poolToken.sol
interface I2poolToken {
function decimals() external view returns (uint256);
function transfer(address _to, uint256 _value) external returns (bool);
function transferFrom(address _from, address _to, uint256 _value) external returns (bool);
function approve(address _spender, uint256 _value) external returns (bool);
function increaseAllowance(address _spender, uint256 _added_value) external returns (bool);
function decreaseAllowance(address _spender, uint256 _subtracted_value) external returns (bool);
function mint(address _to, uint256 _value) external returns (bool);
function burnFrom(address _to, uint256 _value) external returns (bool);
function set_minter(address _minter) external;
function set_name(string memory _name, string memory _symbol) external;
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function balanceOf(address arg0) external view returns (uint256);
function allowance(address arg0, address arg1) external view returns (uint256);
function totalSupply() external view returns (uint256);
function minter() external view returns (address);
}
// File contracts/Curve/IFraxGaugeController.sol
// https://github.com/swervefi/swerve/edit/master/packages/swerve-contracts/interfaces/IGaugeController.sol
interface IFraxGaugeController {
struct Point {
uint256 bias;
uint256 slope;
}
struct VotedSlope {
uint256 slope;
uint256 power;
uint256 end;
}
// Public variables
function admin() external view returns (address);
function future_admin() external view returns (address);
function token() external view returns (address);
function voting_escrow() external view returns (address);
function n_gauge_types() external view returns (int128);
function n_gauges() external view returns (int128);
function gauge_type_names(int128) external view returns (string memory);
function gauges(uint256) external view returns (address);
function vote_user_slopes(address, address)
external
view
returns (VotedSlope memory);
function vote_user_power(address) external view returns (uint256);
function last_user_vote(address, address) external view returns (uint256);
function points_weight(address, uint256)
external
view
returns (Point memory);
function time_weight(address) external view returns (uint256);
function points_sum(int128, uint256) external view returns (Point memory);
function time_sum(uint256) external view returns (uint256);
function points_total(uint256) external view returns (uint256);
function time_total() external view returns (uint256);
function points_type_weight(int128, uint256)
external
view
returns (uint256);
function time_type_weight(uint256) external view returns (uint256);
// Getter functions
function gauge_types(address) external view returns (int128);
function gauge_relative_weight(address) external view returns (uint256);
function gauge_relative_weight(address, uint256) external view returns (uint256);
function get_gauge_weight(address) external view returns (uint256);
function get_type_weight(int128) external view returns (uint256);
function get_total_weight() external view returns (uint256);
function get_weights_sum_per_type(int128) external view returns (uint256);
// External functions
function commit_transfer_ownership(address) external;
function apply_transfer_ownership() external;
function add_gauge(
address,
int128,
uint256
) external;
function checkpoint() external;
function checkpoint_gauge(address) external;
function global_emission_rate() external view returns (uint256);
function gauge_relative_weight_write(address)
external
returns (uint256);
function gauge_relative_weight_write(address, uint256)
external
returns (uint256);
function add_type(string memory, uint256) external;
function change_type_weight(int128, uint256) external;
function change_gauge_weight(address, uint256) external;
function change_global_emission_rate(uint256) external;
function vote_for_gauge_weights(address, uint256) external;
}
// File contracts/Curve/IFraxGaugeFXSRewardsDistributor.sol
interface IFraxGaugeFXSRewardsDistributor {
function acceptOwnership()...
// [truncated — 131913 bytes total]
Read Contract
calcCurCombinedWeight 0x8bad86a7 → uint256, uint256, uint256
calcCurrLockMultiplier 0x774d4ae7 → uint256
combinedWeightOf 0x36f89af2 → uint256
curvePool 0x218751b2 → address
curveToken 0x4f39059c → address
earned 0x008cc262 → uint256[]
fraxPerLPStored 0xd2010fb4 → uint256
fraxPerLPToken 0x5bfd9258 → uint256
getAllRewardTokens 0x12edb24c → address[]
getProxyFor 0xc3543826 → address
getRewardForDuration 0x1c1f78eb → uint256[]
isTokenManagerFor 0x231b68dc → bool
lastRewardClaimTime 0x6c430dbb → uint256
lastUpdateTime 0xc8f33c91 → uint256
lockMultiplier 0x0d7bac4f → uint256
lock_max_multiplier 0xcdc82e80 → uint256
lock_time_for_max_multiplier 0xb94c4dcb → uint256
lock_time_min 0x6e27cef9 → uint256
lockedLiquidityOf 0xd9f96e8d → uint256
lockedStakes 0x7970833e → bytes32, uint256, uint256, uint256, uint256
lockedStakesOf 0x1e090f01 → tuple[]
lockedStakesOfLength 0xca6df29d → uint256
maxLPForMaxBoost 0xa0f23476 → uint256
minVeFXSForMaxBoost 0x4fd2b536 → uint256
minVeFXSForMaxBoostProxy 0x7f472e54 → uint256
nominatedOwner 0x53a47bb7 → address
owner 0x8da5cb5b → address
periodFinish 0xebe2b12b → uint256
proxyStakedFrax 0x1face856 → uint256
proxy_lp_balances 0x7d6ef08e → uint256
rewardManagers 0x41a16f3f → address
rewardRates 0xf2caeb1e → uint256
rewardTokenAddrToIdx 0x69339245 → uint256
rewardsDuration 0x386a9525 → uint256
rewardsPerToken 0x70641a36 → uint256[]
staker_designated_proxies 0x28408bab → address
stakesUnlocked 0x9637927f → bool
stakingToken 0x72f702f3 → address
totalCombinedWeight 0x64f2c060 → uint256
totalLiquidityLocked 0xe01f62bf → uint256
userStakedFrax 0xd42fc9b4 → uint256
veFXSMultiplier 0x2c0c2a0a → uint256
vefxs_boost_scale_factor 0xaa1d4fce → uint256
vefxs_max_multiplier 0xf288baf6 → uint256
vefxs_per_frax_for_max_boost 0xf2a8d349 → uint256
Write Contract 20 functions
These functions modify contract state and require a wallet transaction to execute.
acceptOwnership 0x79ba5097
No parameters
changeTokenManager 0xde1a6551
address reward_token_address
address new_manager_address
getReward 0xc00007b0
address destination_address
returns: uint256[]
getReward2 0x7910d17b
address destination_address
bool claim_extra_too
returns: uint256[]
getRewardExtraLogic 0x387edc86
address destination_address
lockAdditional 0xb85efd06
bytes32 kek_id
uint256 addl_liq
lockLonger 0xd2fbdc0d
bytes32 kek_id
uint256 new_ending_ts
nominateNewOwner 0x1627540c
address _owner
proxyToggleStaker 0xe7f30582
address staker_address
recoverERC20 0x8980f11f
address tokenAddress
uint256 tokenAmount
setMiscVariables 0xfacefb64
uint256[6] _misc_vars
setPauses 0x2df079f1
bool _stakingPaused
bool _withdrawalsPaused
bool _rewardsCollectionPaused
bool _collectRewardsOnWithdrawalPaused
setRewardVars 0xd5e1a9c6
address reward_token_address
uint256 _new_rate
address _gauge_controller_address
address _rewards_distributor_address
stakeLocked 0x17b18c89
uint256 liquidity
uint256 secs
returns: bytes32
stakerSetVeFXSProxy 0xd7400d56
address proxy_address
sync 0xfff6cae9
No parameters
sync_gauge_weights 0xf77e34d1
bool force_update
toggleValidVeFXSProxy 0x91cf600a
address _proxy_addr
unlockStakes 0xe1ba95d2
No parameters
withdrawLocked 0x0238b936
bytes32 kek_id
address destination_address
bool claim_rewards
returns: uint256
Recent Transactions
No transactions found for this address