bsc/core/systemcontracts/pascal/mainnet/StakingContract
Ethan 8c1acb0b22
feat: add pascal hardfork (#2692)
* feat: add pascal hardfork
* config: fix default value for PascalTime and add OverridePascal (#2693)
* chores: rename some contract name
* feat: update bytecode on dev env
2024-09-23 16:17:06 +08:00

1 line
9.3 KiB
Plaintext

60806040526004361061028c5760003560e01c806375d47a0a1161015a578063bf8546ca116100c1578063df8079e91161007a578063df8079e9146109aa578063edc1a5b0146109bf578063f45fd80b146109d4578063f9a2bbc714610a19578063fa03f79714610a2e578063fd6a687914610a4357610293565b8063bf8546ca146108f5578063c2117d8214610930578063c81b166214610945578063c8509d81146106d0578063d61b9b931461095a578063dc927faf1461099557610293565b8063aa82dce111610113578063aa82dce1146107a8578063aad56063146107bd578063ab51bb96146107d2578063ac43175114610800578063b88a802f146108cb578063baaafd3b146108e057610293565b806375d47a0a146106a65780637e434d54146106bb578063831d65d1146106d05780639dc0926214610755578063a1a11bf51461076a578063a78abc161461077f57610293565b8063493279b1116101fe57806362b171d2116101b757806362b171d2146105cb57806369b635b6146105e05780636bd8f804146105f55780636e47b4821461062b5780636fb7f7eb1461064057806375aca5931461067357610293565b8063493279b11461051f5780634d99dd161461054b57806351b4dce31461057757806351e806721461058c5780635d17c8bd146105a15780635d499b1b146105b657610293565b80631182b875116102505780631182b8751461039e57806311fe9ec61461049857806328087028146104cb5780632fdeb111146104e057806334c43354146104f557806343756e5c1461050a57610293565b8063026e402b1461029857806302985992146102c6578063047636d1146102ed5780630c795715146103585780630e2374a51461036d57610293565b3661029357005b600080fd5b6102c4600480360360408110156102ae57600080fd5b506001600160a01b038135169060200135610a58565b005b3480156102d257600080fd5b506102db610a95565b60408051918252519081900360200190f35b3480156102f957600080fd5b506103206004803603602081101561031057600080fd5b50356001600160a01b0316610a9b565b6040518082606080838360005b8381101561034557818101518382015260200161032d565b5050505090500191505060405180910390f35b34801561036457600080fd5b506102db610aed565b34801561037957600080fd5b50610382610af3565b604080516001600160a01b039092168252519081900360200190f35b3480156103aa57600080fd5b50610423600480360360408110156103c157600080fd5b60ff8235169190810190604081016020820135600160201b8111156103e557600080fd5b8201836020820111156103f757600080fd5b803590602001918460018302840111600160201b8311171561041857600080fd5b509092509050610af9565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561045d578181015183820152602001610445565b50505050905090810190601f16801561048a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156104a457600080fd5b506102db600480360360208110156104bb57600080fd5b50356001600160a01b0316610bb8565b3480156104d757600080fd5b50610382610bd3565b3480156104ec57600080fd5b506102db610bd9565b34801561050157600080fd5b506102db610bdf565b34801561051657600080fd5b50610382610bea565b34801561052b57600080fd5b50610534610bf0565b6040805161ffff9092168252519081900360200190f35b6102c46004803603604081101561056157600080fd5b506001600160a01b038135169060200135610bf5565b34801561058357600080fd5b50610382610cba565b34801561059857600080fd5b50610382610cc0565b3480156105ad57600080fd5b506102db610cc6565b3480156105c257600080fd5b506102db610ccc565b3480156105d757600080fd5b506102db610cd5565b3480156105ec57600080fd5b506102db610e75565b6102c46004803603606081101561060b57600080fd5b506001600160a01b03813581169160208101359091169060400135610a58565b34801561063757600080fd5b50610382610e7b565b34801561064c57600080fd5b506102db6004803603602081101561066357600080fd5b50356001600160a01b0316610e81565b34801561067f57600080fd5b506102db6004803603602081101561069657600080fd5b50356001600160a01b0316610e9c565b3480156106b257600080fd5b50610382610eb7565b3480156106c757600080fd5b50610382610ebd565b3480156106dc57600080fd5b506102c4600480360360408110156106f357600080fd5b60ff8235169190810190604081016020820135600160201b81111561071757600080fd5b82018360208201111561072957600080fd5b803590602001918460018302840111600160201b8311171561074a57600080fd5b509092509050610ec3565b34801561076157600080fd5b50610382610f03565b34801561077657600080fd5b50610382610f09565b34801561078b57600080fd5b50610794610f0f565b604080519115158252519081900360200190f35b3480156107b457600080fd5b50610382610f18565b3480156107c957600080fd5b50610382610f1e565b3480156107de57600080fd5b506107e7610f24565b6040805163ffffffff9092168252519081900360200190f35b34801561080c57600080fd5b506102c46004803603604081101561082357600080fd5b810190602081018135600160201b81111561083d57600080fd5b82018360208201111561084f57600080fd5b803590602001918460018302840111600160201b8311171561087057600080fd5b919390929091602081019035600160201b81111561088d57600080fd5b82018360208201111561089f57600080fd5b803590602001918460018302840111600160201b831117156108c057600080fd5b509092509050610f29565b3480156108d757600080fd5b506102db610fc0565b3480156108ec57600080fd5b506102db61115d565b34801561090157600080fd5b506102db6004803603604081101561091857600080fd5b506001600160a01b0381358116916020013516611168565b34801561093c57600080fd5b506102db611193565b34801561095157600080fd5b50610382611199565b34801561096657600080fd5b506102db6004803603604081101561097d57600080fd5b506001600160a01b038135811691602001351661119f565b3480156109a157600080fd5b506103826111ca565b3480156109b657600080fd5b506103826111d0565b3480156109cb57600080fd5b506102db6111d6565b3480156109e057600080fd5b506102db600480360360608110156109f757600080fd5b506001600160a01b0381358116916020810135821691604090910135166111e3565b348015610a2557600080fd5b50610382611218565b348015610a3a57600080fd5b506102db61121e565b348015610a4f57600080fd5b50610382611224565b6040805162461bcd60e51b815260206004820152600d60248201526c1b9bdd081cdd5c1c1bdc9d1959609a1b604482015290519081900360640190fd5b60035481565b610aa361122a565b610aab61122a565b6001600160a01b03929092166000818152600b60209081526040808320548652838352600c82528083205486830152928252600d905281902054908301525090565b6108fc81565b61200181565b60603361200014610b3b5760405162461bcd60e51b815260040180806020018281038252602f815260200180611277602f913960400191505060405180910390fd5b60005460ff16610b7e576638d7ea4c6800006001908155662386f26fc1000060025568056bc75e2d631000006003556108fc6011556000805460ff191690911790555b6040805162461bcd60e51b815260206004820152600a60248201526919195c1c9958d85d195960b21b604482015290519081900360640190fd5b6001600160a01b031660009081526006602052604090205490565b61200581565b60015481565b662386f26fc1000081565b61100181565b603881565b60105460ff1660021415610c41576040805162461bcd60e51b815260206004820152600e60248201526d4e6f2072652d656e7472616e637960901b604482015290519081900360640190fd5b6010805460ff19166002179055806402540be4003406158015610c6957506402540be4008106155b610b3b576040805162461bcd60e51b815260206004820152601c60248201527f707265636973696f6e206c6f737320696e20636f6e76657273696f6e00000000604482015290519081900360640190fd5b61200681565b61200081565b60025481565b6402540be40081565b60105460009060ff1660021415610d24576040805162461bcd60e51b815260206004820152600e60248201526d4e6f2072652d656e7472616e637960901b604482015290519081900360640190fd5b506010805460ff191660021790553360009081526008602052604090205480610d8b576040805162461bcd60e51b81526020600482015260146024820152736e6f20756e64656c6567617465642066756e647360601b604482015290519081900360640190fd5b336000818152600860205260408082208290556011549051919291849084818181858888f193505050503d8060008114610de1576040519150601f19603f3d011682016040523d82523d6000602084013e610de6565b606091505b5050905080610e2e576040805162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b604482015290519081900360640190fd5b60408051838152905133917fc712d133b8d448221aaed2198ed1f0db6dfc860fb01bc3a630916fe6cbef946f919081900360200190a2506010805460ff1916600117905590565b60035490565b61100581565b6001600160a01b031660009081526004602052604090205490565b6001600160a01b031660009081526008602052604090205490565b61100881565b61200381565b3361200014610b3b5760405162461bcd60e51b815260040180806020018281038252602f815260200180611277602f913960400191505060405180910390fd5b61100781565b61100681565b60005460ff1681565b61200281565b61300081565b600081565b60005460ff16610f80576040805162461bcd60e51b815260206004820152601960248201527f74686520636f6e7472616374206e6f7420696e69742079657400000000000000604482015290519081900360640190fd5b3361100714610b7e5760405162461bcd60e51b815260040180806020018281038252602e815260200180611249602e913960400191505060405180910390fd5b60105460009060ff166002141561100f576040805162461bcd60e51b815260206004820152600e60248201526d4e6f2072652d656e7472616e637960901b604482015290519081900360640190fd5b506010805460ff191660021790553360009081526006602052604090205480611073576040805162461bcd60e51b81526020600482015260116024820152701b9bc81c195b991a5b99c81c995dd85c99607a1b604482015290519081900360640190fd5b336000818152600660205260408082208290556011549051919291849084818181858888f193505050503d80600081146110c9576040519150601f19603f3d011682016040523d82523d6000602084013e6110ce565b606091505b5050905080611116576040805162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b604482015290519081900360640190fd5b60408051838152905133917f83b78188b13346b2ffb484da70d42ee27de7fbf9f2bd8045269e10ed643ccd76919081900360200190a2506010805460ff1916600117905590565b6638d7ea4c68000081565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b60015490565b61100281565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b61100381565b61200481565b68056bc75e2d6310000081565b6001600160a01b0392831660009081526009602090815260408083209486168352938152838220929094168152925290205490565b61100081565b60115481565b61100481565b6040518060600160405280600390602082028036833750919291505056fe746865206d6573736167652073656e646572206d75737420626520676f7665726e616e636520636f6e7472616374746865206d6573736167652073656e646572206d7573742062652063726f737320636861696e20636f6e7472616374a164736f6c6343000604000a