LPStaking.json 126 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784
  1. {
  2. "address": "0x88d038EfC5479cb48C74846A4Ee7BB122876365d",
  3. "abi": [
  4. {
  5. "inputs": [
  6. {
  7. "internalType": "contract MirrorgateToken",
  8. "name": "_mirrorgate",
  9. "type": "address"
  10. },
  11. {
  12. "internalType": "uint256",
  13. "name": "_mirrorgatePerBlock",
  14. "type": "uint256"
  15. },
  16. {
  17. "internalType": "uint256",
  18. "name": "_startBlock",
  19. "type": "uint256"
  20. },
  21. {
  22. "internalType": "uint256",
  23. "name": "_bonusEndBlock",
  24. "type": "uint256"
  25. }
  26. ],
  27. "stateMutability": "nonpayable",
  28. "type": "constructor"
  29. },
  30. {
  31. "anonymous": false,
  32. "inputs": [
  33. {
  34. "indexed": true,
  35. "internalType": "address",
  36. "name": "user",
  37. "type": "address"
  38. },
  39. {
  40. "indexed": true,
  41. "internalType": "uint256",
  42. "name": "pid",
  43. "type": "uint256"
  44. },
  45. {
  46. "indexed": false,
  47. "internalType": "uint256",
  48. "name": "amount",
  49. "type": "uint256"
  50. }
  51. ],
  52. "name": "Deposit",
  53. "type": "event"
  54. },
  55. {
  56. "anonymous": false,
  57. "inputs": [
  58. {
  59. "indexed": true,
  60. "internalType": "address",
  61. "name": "user",
  62. "type": "address"
  63. },
  64. {
  65. "indexed": true,
  66. "internalType": "uint256",
  67. "name": "pid",
  68. "type": "uint256"
  69. },
  70. {
  71. "indexed": false,
  72. "internalType": "uint256",
  73. "name": "amount",
  74. "type": "uint256"
  75. }
  76. ],
  77. "name": "EmergencyWithdraw",
  78. "type": "event"
  79. },
  80. {
  81. "anonymous": false,
  82. "inputs": [
  83. {
  84. "indexed": true,
  85. "internalType": "address",
  86. "name": "previousOwner",
  87. "type": "address"
  88. },
  89. {
  90. "indexed": true,
  91. "internalType": "address",
  92. "name": "newOwner",
  93. "type": "address"
  94. }
  95. ],
  96. "name": "OwnershipTransferred",
  97. "type": "event"
  98. },
  99. {
  100. "anonymous": false,
  101. "inputs": [
  102. {
  103. "indexed": true,
  104. "internalType": "address",
  105. "name": "user",
  106. "type": "address"
  107. },
  108. {
  109. "indexed": true,
  110. "internalType": "uint256",
  111. "name": "pid",
  112. "type": "uint256"
  113. },
  114. {
  115. "indexed": false,
  116. "internalType": "uint256",
  117. "name": "amount",
  118. "type": "uint256"
  119. }
  120. ],
  121. "name": "Withdraw",
  122. "type": "event"
  123. },
  124. {
  125. "inputs": [],
  126. "name": "BONUS_MULTIPLIER",
  127. "outputs": [
  128. {
  129. "internalType": "uint256",
  130. "name": "",
  131. "type": "uint256"
  132. }
  133. ],
  134. "stateMutability": "view",
  135. "type": "function"
  136. },
  137. {
  138. "inputs": [
  139. {
  140. "internalType": "uint256",
  141. "name": "_allocPoint",
  142. "type": "uint256"
  143. },
  144. {
  145. "internalType": "contract IERC20",
  146. "name": "_lpToken",
  147. "type": "address"
  148. }
  149. ],
  150. "name": "add",
  151. "outputs": [],
  152. "stateMutability": "nonpayable",
  153. "type": "function"
  154. },
  155. {
  156. "inputs": [],
  157. "name": "bonusEndBlock",
  158. "outputs": [
  159. {
  160. "internalType": "uint256",
  161. "name": "",
  162. "type": "uint256"
  163. }
  164. ],
  165. "stateMutability": "view",
  166. "type": "function"
  167. },
  168. {
  169. "inputs": [
  170. {
  171. "internalType": "uint256",
  172. "name": "_pid",
  173. "type": "uint256"
  174. },
  175. {
  176. "internalType": "uint256",
  177. "name": "_amount",
  178. "type": "uint256"
  179. }
  180. ],
  181. "name": "deposit",
  182. "outputs": [],
  183. "stateMutability": "nonpayable",
  184. "type": "function"
  185. },
  186. {
  187. "inputs": [
  188. {
  189. "internalType": "uint256",
  190. "name": "_pid",
  191. "type": "uint256"
  192. }
  193. ],
  194. "name": "emergencyWithdraw",
  195. "outputs": [],
  196. "stateMutability": "nonpayable",
  197. "type": "function"
  198. },
  199. {
  200. "inputs": [
  201. {
  202. "internalType": "uint256",
  203. "name": "_from",
  204. "type": "uint256"
  205. },
  206. {
  207. "internalType": "uint256",
  208. "name": "_to",
  209. "type": "uint256"
  210. }
  211. ],
  212. "name": "getMultiplier",
  213. "outputs": [
  214. {
  215. "internalType": "uint256",
  216. "name": "",
  217. "type": "uint256"
  218. }
  219. ],
  220. "stateMutability": "view",
  221. "type": "function"
  222. },
  223. {
  224. "inputs": [
  225. {
  226. "internalType": "uint256",
  227. "name": "",
  228. "type": "uint256"
  229. }
  230. ],
  231. "name": "lpBalances",
  232. "outputs": [
  233. {
  234. "internalType": "uint256",
  235. "name": "",
  236. "type": "uint256"
  237. }
  238. ],
  239. "stateMutability": "view",
  240. "type": "function"
  241. },
  242. {
  243. "inputs": [],
  244. "name": "massUpdatePools",
  245. "outputs": [],
  246. "stateMutability": "nonpayable",
  247. "type": "function"
  248. },
  249. {
  250. "inputs": [],
  251. "name": "mirrorgate",
  252. "outputs": [
  253. {
  254. "internalType": "contract MirrorgateToken",
  255. "name": "",
  256. "type": "address"
  257. }
  258. ],
  259. "stateMutability": "view",
  260. "type": "function"
  261. },
  262. {
  263. "inputs": [],
  264. "name": "mirrorgatePerBlock",
  265. "outputs": [
  266. {
  267. "internalType": "uint256",
  268. "name": "",
  269. "type": "uint256"
  270. }
  271. ],
  272. "stateMutability": "view",
  273. "type": "function"
  274. },
  275. {
  276. "inputs": [],
  277. "name": "owner",
  278. "outputs": [
  279. {
  280. "internalType": "address",
  281. "name": "",
  282. "type": "address"
  283. }
  284. ],
  285. "stateMutability": "view",
  286. "type": "function"
  287. },
  288. {
  289. "inputs": [
  290. {
  291. "internalType": "uint256",
  292. "name": "_pid",
  293. "type": "uint256"
  294. },
  295. {
  296. "internalType": "address",
  297. "name": "_user",
  298. "type": "address"
  299. }
  300. ],
  301. "name": "pendingMirrorgate",
  302. "outputs": [
  303. {
  304. "internalType": "uint256",
  305. "name": "",
  306. "type": "uint256"
  307. }
  308. ],
  309. "stateMutability": "view",
  310. "type": "function"
  311. },
  312. {
  313. "inputs": [
  314. {
  315. "internalType": "uint256",
  316. "name": "",
  317. "type": "uint256"
  318. }
  319. ],
  320. "name": "poolInfo",
  321. "outputs": [
  322. {
  323. "internalType": "contract IERC20",
  324. "name": "lpToken",
  325. "type": "address"
  326. },
  327. {
  328. "internalType": "uint256",
  329. "name": "allocPoint",
  330. "type": "uint256"
  331. },
  332. {
  333. "internalType": "uint256",
  334. "name": "lastRewardBlock",
  335. "type": "uint256"
  336. },
  337. {
  338. "internalType": "uint256",
  339. "name": "accMirrorgatePerShare",
  340. "type": "uint256"
  341. }
  342. ],
  343. "stateMutability": "view",
  344. "type": "function"
  345. },
  346. {
  347. "inputs": [],
  348. "name": "poolLength",
  349. "outputs": [
  350. {
  351. "internalType": "uint256",
  352. "name": "",
  353. "type": "uint256"
  354. }
  355. ],
  356. "stateMutability": "view",
  357. "type": "function"
  358. },
  359. {
  360. "inputs": [],
  361. "name": "renounceOwnership",
  362. "outputs": [],
  363. "stateMutability": "nonpayable",
  364. "type": "function"
  365. },
  366. {
  367. "inputs": [
  368. {
  369. "internalType": "uint256",
  370. "name": "_pid",
  371. "type": "uint256"
  372. },
  373. {
  374. "internalType": "uint256",
  375. "name": "_allocPoint",
  376. "type": "uint256"
  377. }
  378. ],
  379. "name": "set",
  380. "outputs": [],
  381. "stateMutability": "nonpayable",
  382. "type": "function"
  383. },
  384. {
  385. "inputs": [
  386. {
  387. "internalType": "uint256",
  388. "name": "_mirrorgatePerBlock",
  389. "type": "uint256"
  390. }
  391. ],
  392. "name": "setMirrorgatePerBlock",
  393. "outputs": [],
  394. "stateMutability": "nonpayable",
  395. "type": "function"
  396. },
  397. {
  398. "inputs": [],
  399. "name": "startBlock",
  400. "outputs": [
  401. {
  402. "internalType": "uint256",
  403. "name": "",
  404. "type": "uint256"
  405. }
  406. ],
  407. "stateMutability": "view",
  408. "type": "function"
  409. },
  410. {
  411. "inputs": [],
  412. "name": "totalAllocPoint",
  413. "outputs": [
  414. {
  415. "internalType": "uint256",
  416. "name": "",
  417. "type": "uint256"
  418. }
  419. ],
  420. "stateMutability": "view",
  421. "type": "function"
  422. },
  423. {
  424. "inputs": [
  425. {
  426. "internalType": "address",
  427. "name": "newOwner",
  428. "type": "address"
  429. }
  430. ],
  431. "name": "transferOwnership",
  432. "outputs": [],
  433. "stateMutability": "nonpayable",
  434. "type": "function"
  435. },
  436. {
  437. "inputs": [
  438. {
  439. "internalType": "uint256",
  440. "name": "_pid",
  441. "type": "uint256"
  442. }
  443. ],
  444. "name": "updatePool",
  445. "outputs": [],
  446. "stateMutability": "nonpayable",
  447. "type": "function"
  448. },
  449. {
  450. "inputs": [
  451. {
  452. "internalType": "uint256",
  453. "name": "",
  454. "type": "uint256"
  455. },
  456. {
  457. "internalType": "address",
  458. "name": "",
  459. "type": "address"
  460. }
  461. ],
  462. "name": "userInfo",
  463. "outputs": [
  464. {
  465. "internalType": "uint256",
  466. "name": "amount",
  467. "type": "uint256"
  468. },
  469. {
  470. "internalType": "uint256",
  471. "name": "rewardDebt",
  472. "type": "uint256"
  473. }
  474. ],
  475. "stateMutability": "view",
  476. "type": "function"
  477. },
  478. {
  479. "inputs": [
  480. {
  481. "internalType": "uint256",
  482. "name": "_pid",
  483. "type": "uint256"
  484. },
  485. {
  486. "internalType": "uint256",
  487. "name": "_amount",
  488. "type": "uint256"
  489. }
  490. ],
  491. "name": "withdraw",
  492. "outputs": [],
  493. "stateMutability": "nonpayable",
  494. "type": "function"
  495. }
  496. ],
  497. "transactionHash": "0xff6fb80f72c64f26b03b78f8defc890d07cf5a0f7264e927afeaedcd4cf30cbd",
  498. "receipt": {
  499. "to": null,
  500. "from": "0x368715F09C1AB5E0B55bF5bA19cD887189A28DBE",
  501. "contractAddress": "0x88d038EfC5479cb48C74846A4Ee7BB122876365d",
  502. "transactionIndex": 1,
  503. "gasUsed": "1449246",
  504. "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000004000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000080000000000000000000000000000000000000000000000000008000000000000000000000000000800000000000000000000000080000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000",
  505. "blockHash": "0xc950df374dd9bd5391f39b68103c00e3fabebb66f385f1f985ceb14d8b3b4896",
  506. "transactionHash": "0xff6fb80f72c64f26b03b78f8defc890d07cf5a0f7264e927afeaedcd4cf30cbd",
  507. "logs": [
  508. {
  509. "transactionIndex": 1,
  510. "blockNumber": 7369802,
  511. "transactionHash": "0xff6fb80f72c64f26b03b78f8defc890d07cf5a0f7264e927afeaedcd4cf30cbd",
  512. "address": "0x88d038EfC5479cb48C74846A4Ee7BB122876365d",
  513. "topics": [
  514. "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
  515. "0x0000000000000000000000000000000000000000000000000000000000000000",
  516. "0x000000000000000000000000368715f09c1ab5e0b55bf5ba19cd887189a28dbe"
  517. ],
  518. "data": "0x",
  519. "logIndex": 0,
  520. "blockHash": "0xc950df374dd9bd5391f39b68103c00e3fabebb66f385f1f985ceb14d8b3b4896"
  521. }
  522. ],
  523. "blockNumber": 7369802,
  524. "cumulativeGasUsed": "1513259",
  525. "status": 1,
  526. "byzantium": true
  527. },
  528. "args": [
  529. "0xd95be3c676EC9912df585e88619d62340BCb725b",
  530. "1000000000000000000",
  531. 7369898,
  532. 7369899
  533. ],
  534. "numDeployments": 1,
  535. "solcInputHash": "c474952dec744e7c88dc7c3d2b8d163f",
  536. "metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract MirrorgateToken\",\"name\":\"_mirrorgate\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_mirrorgatePerBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_startBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_bonusEndBlock\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"EmergencyWithdraw\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"BONUS_MULTIPLIER\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_allocPoint\",\"type\":\"uint256\"},{\"internalType\":\"contract IERC20\",\"name\":\"_lpToken\",\"type\":\"address\"}],\"name\":\"add\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bonusEndBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"}],\"name\":\"emergencyWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_from\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_to\",\"type\":\"uint256\"}],\"name\":\"getMultiplier\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"lpBalances\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"massUpdatePools\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"mirrorgate\",\"outputs\":[{\"internalType\":\"contract MirrorgateToken\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"mirrorgatePerBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"pendingMirrorgate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"poolInfo\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"lpToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"allocPoint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastRewardBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"accMirrorgatePerShare\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_allocPoint\",\"type\":\"uint256\"}],\"name\":\"set\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_mirrorgatePerBlock\",\"type\":\"uint256\"}],\"name\":\"setMirrorgatePerBlock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"startBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalAllocPoint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"}],\"name\":\"updatePool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"userInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardDebt\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"add(uint256,address)\":{\"params\":{\"_allocPoint\":\"The alloc point is used as the weight of the pool against all other alloc points added.\",\"_lpToken\":\"The lp token address\"}},\"emergencyWithdraw(uint256)\":{\"params\":{\"_pid\":\"The pid specifies the pool\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"add(uint256,address)\":{\"notice\":\"handles adding a new LP token (Can only be called by the owner)\"},\"emergencyWithdraw(uint256)\":{\"notice\":\"Withdraw without caring about rewards.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/LPStaking.sol\":\"LPStaking\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor () {\\n address msgSender = _msgSender();\\n _owner = msgSender;\\n emit OwnershipTransferred(address(0), msgSender);\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n _;\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n emit OwnershipTransferred(_owner, address(0));\\n _owner = address(0);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n emit OwnershipTransferred(_owner, newOwner);\\n _owner = newOwner;\\n }\\n}\\n\",\"keccak256\":\"0x549c5343ad9f7e3f38aa4c4761854403502574bbc15b822db2ce892ff9b79da7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\n/**\\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\\n * checks.\\n *\\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\\n * in bugs, because programmers usually assume that an overflow raises an\\n * error, which is the standard behavior in high level programming languages.\\n * `SafeMath` restores this intuition by reverting the transaction when an\\n * operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeMath {\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n\\n /**\\n * @dev Returns the substraction of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `+` operator.\\n *\\n * Requirements:\\n *\\n * - Addition cannot overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n uint256 c = a + b;\\n require(c >= a, \\\"SafeMath: addition overflow\\\");\\n return c;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting on\\n * overflow (when the result is negative).\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b <= a, \\\"SafeMath: subtraction overflow\\\");\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `*` operator.\\n *\\n * Requirements:\\n *\\n * - Multiplication cannot overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (a == 0) return 0;\\n uint256 c = a * b;\\n require(c / a == b, \\\"SafeMath: multiplication overflow\\\");\\n return c;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting on\\n * division by zero. The result is rounded towards zero.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b > 0, \\\"SafeMath: division by zero\\\");\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting when dividing by zero.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b > 0, \\\"SafeMath: modulo by zero\\\");\\n return a % b;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\\n * overflow (when the result is negative).\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {trySub}.\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b <= a, errorMessage);\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting with custom message on\\n * division by zero. The result is rounded towards zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryDiv}.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b > 0, errorMessage);\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting with custom message when dividing by zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryMod}.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b > 0, errorMessage);\\n return a % b;\\n }\\n}\\n\",\"keccak256\":\"0xe22a1fc7400ae196eba2ad1562d0386462b00a6363b742d55a2fd2021a58586f\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/ERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\nimport \\\"../../utils/Context.sol\\\";\\nimport \\\"./IERC20.sol\\\";\\nimport \\\"../../math/SafeMath.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC20} interface.\\n *\\n * This implementation is agnostic to the way tokens are created. This means\\n * that a supply mechanism has to be added in a derived contract using {_mint}.\\n * For a generic mechanism see {ERC20PresetMinterPauser}.\\n *\\n * TIP: For a detailed writeup see our guide\\n * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\\n * to implement supply mechanisms].\\n *\\n * We have followed general OpenZeppelin guidelines: functions revert instead\\n * of returning `false` on failure. This behavior is nonetheless conventional\\n * and does not conflict with the expectations of ERC20 applications.\\n *\\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\\n * This allows applications to reconstruct the allowance for all accounts just\\n * by listening to said events. Other implementations of the EIP may not emit\\n * these events, as it isn't required by the specification.\\n *\\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\\n * functions have been added to mitigate the well-known issues around setting\\n * allowances. See {IERC20-approve}.\\n */\\ncontract ERC20 is Context, IERC20 {\\n using SafeMath for uint256;\\n\\n mapping (address => uint256) private _balances;\\n\\n mapping (address => mapping (address => uint256)) private _allowances;\\n\\n uint256 private _totalSupply;\\n\\n string private _name;\\n string private _symbol;\\n uint8 private _decimals;\\n\\n /**\\n * @dev Sets the values for {name} and {symbol}, initializes {decimals} with\\n * a default value of 18.\\n *\\n * To select a different value for {decimals}, use {_setupDecimals}.\\n *\\n * All three of these values are immutable: they can only be set once during\\n * construction.\\n */\\n constructor (string memory name_, string memory symbol_) {\\n _name = name_;\\n _symbol = symbol_;\\n _decimals = 18;\\n }\\n\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() public view virtual returns (string memory) {\\n return _name;\\n }\\n\\n /**\\n * @dev Returns the symbol of the token, usually a shorter version of the\\n * name.\\n */\\n function symbol() public view virtual returns (string memory) {\\n return _symbol;\\n }\\n\\n /**\\n * @dev Returns the number of decimals used to get its user representation.\\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\\n * be displayed to a user as `5,05` (`505 / 10 ** 2`).\\n *\\n * Tokens usually opt for a value of 18, imitating the relationship between\\n * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is\\n * called.\\n *\\n * NOTE: This information is only used for _display_ purposes: it in\\n * no way affects any of the arithmetic of the contract, including\\n * {IERC20-balanceOf} and {IERC20-transfer}.\\n */\\n function decimals() public view virtual returns (uint8) {\\n return _decimals;\\n }\\n\\n /**\\n * @dev See {IERC20-totalSupply}.\\n */\\n function totalSupply() public view virtual override returns (uint256) {\\n return _totalSupply;\\n }\\n\\n /**\\n * @dev See {IERC20-balanceOf}.\\n */\\n function balanceOf(address account) public view virtual override returns (uint256) {\\n return _balances[account];\\n }\\n\\n /**\\n * @dev See {IERC20-transfer}.\\n *\\n * Requirements:\\n *\\n * - `recipient` cannot be the zero address.\\n * - the caller must have a balance of at least `amount`.\\n */\\n function transfer(address recipient, uint256 amount) public virtual override returns (bool) {\\n _transfer(_msgSender(), recipient, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-allowance}.\\n */\\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\\n return _allowances[owner][spender];\\n }\\n\\n /**\\n * @dev See {IERC20-approve}.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\\n _approve(_msgSender(), spender, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-transferFrom}.\\n *\\n * Emits an {Approval} event indicating the updated allowance. This is not\\n * required by the EIP. See the note at the beginning of {ERC20}.\\n *\\n * Requirements:\\n *\\n * - `sender` and `recipient` cannot be the zero address.\\n * - `sender` must have a balance of at least `amount`.\\n * - the caller must have allowance for ``sender``'s tokens of at least\\n * `amount`.\\n */\\n function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {\\n _transfer(sender, recipient, amount);\\n _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, \\\"ERC20: transfer amount exceeds allowance\\\"));\\n return true;\\n }\\n\\n /**\\n * @dev Atomically increases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\\n _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));\\n return true;\\n }\\n\\n /**\\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `spender` must have allowance for the caller of at least\\n * `subtractedValue`.\\n */\\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\\n _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, \\\"ERC20: decreased allowance below zero\\\"));\\n return true;\\n }\\n\\n /**\\n * @dev Moves tokens `amount` from `sender` to `recipient`.\\n *\\n * This is internal function is equivalent to {transfer}, and can be used to\\n * e.g. implement automatic token fees, slashing mechanisms, etc.\\n *\\n * Emits a {Transfer} event.\\n *\\n * Requirements:\\n *\\n * - `sender` cannot be the zero address.\\n * - `recipient` cannot be the zero address.\\n * - `sender` must have a balance of at least `amount`.\\n */\\n function _transfer(address sender, address recipient, uint256 amount) internal virtual {\\n require(sender != address(0), \\\"ERC20: transfer from the zero address\\\");\\n require(recipient != address(0), \\\"ERC20: transfer to the zero address\\\");\\n\\n _beforeTokenTransfer(sender, recipient, amount);\\n\\n _balances[sender] = _balances[sender].sub(amount, \\\"ERC20: transfer amount exceeds balance\\\");\\n _balances[recipient] = _balances[recipient].add(amount);\\n emit Transfer(sender, recipient, amount);\\n }\\n\\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\\n * the total supply.\\n *\\n * Emits a {Transfer} event with `from` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n */\\n function _mint(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: mint to the zero address\\\");\\n\\n _beforeTokenTransfer(address(0), account, amount);\\n\\n _totalSupply = _totalSupply.add(amount);\\n _balances[account] = _balances[account].add(amount);\\n emit Transfer(address(0), account, amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, reducing the\\n * total supply.\\n *\\n * Emits a {Transfer} event with `to` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n * - `account` must have at least `amount` tokens.\\n */\\n function _burn(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: burn from the zero address\\\");\\n\\n _beforeTokenTransfer(account, address(0), amount);\\n\\n _balances[account] = _balances[account].sub(amount, \\\"ERC20: burn amount exceeds balance\\\");\\n _totalSupply = _totalSupply.sub(amount);\\n emit Transfer(account, address(0), amount);\\n }\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\\n *\\n * This internal function is equivalent to `approve`, and can be used to\\n * e.g. set automatic allowances for certain subsystems, etc.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `owner` cannot be the zero address.\\n * - `spender` cannot be the zero address.\\n */\\n function _approve(address owner, address spender, uint256 amount) internal virtual {\\n require(owner != address(0), \\\"ERC20: approve from the zero address\\\");\\n require(spender != address(0), \\\"ERC20: approve to the zero address\\\");\\n\\n _allowances[owner][spender] = amount;\\n emit Approval(owner, spender, amount);\\n }\\n\\n /**\\n * @dev Sets {decimals} to a value other than the default one of 18.\\n *\\n * WARNING: This function should only be called from the constructor. Most\\n * applications that interact with token contracts will not expect\\n * {decimals} to ever change, and may work incorrectly if it does.\\n */\\n function _setupDecimals(uint8 decimals_) internal virtual {\\n _decimals = decimals_;\\n }\\n\\n /**\\n * @dev Hook that is called before any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * will be to transferred to `to`.\\n * - when `from` is zero, `amount` tokens will be minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }\\n}\\n\",\"keccak256\":\"0x36b5ca4eabe888b39b10973621ca0dcc9b1508f8d06db9ddf045d7aa7c867d4a\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `recipient`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address recipient, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `sender` to `recipient` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n}\\n\",\"keccak256\":\"0xbd74f587ab9b9711801baf667db1426e4a03fd2d7f15af33e0e0d0394e7cef76\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\nimport \\\"./IERC20.sol\\\";\\nimport \\\"../../math/SafeMath.sol\\\";\\nimport \\\"../../utils/Address.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20 {\\n using SafeMath for uint256;\\n using Address for address;\\n\\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(IERC20 token, address spender, uint256 value) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n // solhint-disable-next-line max-line-length\\n require((value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n uint256 newAllowance = token.allowance(address(this), spender).add(value);\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n uint256 newAllowance = token.allowance(address(this), spender).sub(value, \\\"SafeERC20: decreased allowance below zero\\\");\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n */\\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n if (returndata.length > 0) { // Return data is optional\\n // solhint-disable-next-line max-line-length\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0xc77dd6233a82c7c6e3dc49da8f3456baa00ecd3ea4dfa9222002a9aebf155dcd\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize, which returns 0 for contracts in\\n // construction, since the code is only stored at the end of the\\n // constructor execution.\\n\\n uint256 size;\\n // solhint-disable-next-line no-inline-assembly\\n assembly { size := extcodesize(account) }\\n return size > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\\n (bool success, ) = recipient.call{ value: amount }(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain`call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.call{ value: value }(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\\n require(isContract(target), \\\"Address: delegate call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf89f005a3d98f7768cdee2583707db0ac725cf567d455751af32ee68132f3db3\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/*\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with GSN meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address payable) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes memory) {\\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0x8d3cb350f04ff49cfb10aef08d87f19dcbaecc8027b0bed12f3275cd12f38cf0\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\n/**\\n * @dev Library for managing\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\n * types.\\n *\\n * Sets have the following properties:\\n *\\n * - Elements are added, removed, and checked for existence in constant time\\n * (O(1)).\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\n *\\n * ```\\n * contract Example {\\n * // Add the library methods\\n * using EnumerableSet for EnumerableSet.AddressSet;\\n *\\n * // Declare a set state variable\\n * EnumerableSet.AddressSet private mySet;\\n * }\\n * ```\\n *\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\n * and `uint256` (`UintSet`) are supported.\\n */\\nlibrary EnumerableSet {\\n // To implement this library for multiple types with as little code\\n // repetition as possible, we write it in terms of a generic Set type with\\n // bytes32 values.\\n // The Set implementation uses private functions, and user-facing\\n // implementations (such as AddressSet) are just wrappers around the\\n // underlying Set.\\n // This means that we can only create new EnumerableSets for types that fit\\n // in bytes32.\\n\\n struct Set {\\n // Storage of set values\\n bytes32[] _values;\\n\\n // Position of the value in the `values` array, plus 1 because index 0\\n // means a value is not in the set.\\n mapping (bytes32 => uint256) _indexes;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function _add(Set storage set, bytes32 value) private returns (bool) {\\n if (!_contains(set, value)) {\\n set._values.push(value);\\n // The value is stored at length-1, but we add 1 to all indexes\\n // and use 0 as a sentinel value\\n set._indexes[value] = set._values.length;\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function _remove(Set storage set, bytes32 value) private returns (bool) {\\n // We read and store the value's index to prevent multiple reads from the same storage slot\\n uint256 valueIndex = set._indexes[value];\\n\\n if (valueIndex != 0) { // Equivalent to contains(set, value)\\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\n // the array, and then remove the last element (sometimes called as 'swap and pop').\\n // This modifies the order of the array, as noted in {at}.\\n\\n uint256 toDeleteIndex = valueIndex - 1;\\n uint256 lastIndex = set._values.length - 1;\\n\\n // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs\\n // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.\\n\\n bytes32 lastvalue = set._values[lastIndex];\\n\\n // Move the last value to the index where the value to delete is\\n set._values[toDeleteIndex] = lastvalue;\\n // Update the index for the moved value\\n set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based\\n\\n // Delete the slot where the moved value was stored\\n set._values.pop();\\n\\n // Delete the index for the deleted slot\\n delete set._indexes[value];\\n\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\\n return set._indexes[value] != 0;\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function _length(Set storage set) private view returns (uint256) {\\n return set._values.length;\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\\n require(set._values.length > index, \\\"EnumerableSet: index out of bounds\\\");\\n return set._values[index];\\n }\\n\\n // Bytes32Set\\n\\n struct Bytes32Set {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _add(set._inner, value);\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _remove(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\n return _contains(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(Bytes32Set storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\n return _at(set._inner, index);\\n }\\n\\n // AddressSet\\n\\n struct AddressSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(AddressSet storage set, address value) internal returns (bool) {\\n return _add(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(AddressSet storage set, address value) internal returns (bool) {\\n return _remove(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(AddressSet storage set, address value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(AddressSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\\n return address(uint160(uint256(_at(set._inner, index))));\\n }\\n\\n\\n // UintSet\\n\\n struct UintSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(UintSet storage set, uint256 value) internal returns (bool) {\\n return _add(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\\n return _remove(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function length(UintSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\n return uint256(_at(set._inner, index));\\n }\\n}\\n\",\"keccak256\":\"0x9a2c1eebb65250f0e11882237038600f22a62376f0547db4acc0dfe0a3d8d34f\",\"license\":\"MIT\"},\"contracts/LPStaking.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\r\\n\\r\\npragma solidity 0.7.6;\\r\\n\\r\\n// imports\\r\\nimport \\\"@openzeppelin/contracts/utils/EnumerableSet.sol\\\";\\r\\nimport \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\r\\nimport \\\"./MirrorgateToken.sol\\\";\\r\\n\\r\\n// interfaces\\r\\nimport \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\r\\n\\r\\n// libraries\\r\\nimport \\\"@openzeppelin/contracts/math/SafeMath.sol\\\";\\r\\nimport \\\"@openzeppelin/contracts/token/ERC20/SafeERC20.sol\\\";\\r\\n\\r\\ncontract LPStaking is Ownable {\\r\\n using SafeMath for uint256;\\r\\n using SafeERC20 for IERC20;\\r\\n // Info of each user.\\r\\n struct UserInfo {\\r\\n uint256 amount; // How many LP tokens the user has provided.\\r\\n uint256 rewardDebt; // Reward debt. See explanation below.\\r\\n //\\r\\n // We do some fancy math here. Basically, any point in time, the amount of STGs\\r\\n // entitled to a user but is pending to be distributed is:\\r\\n //\\r\\n // pending reward = (user.amount * pool.accStargatePerShare) - user.rewardDebt\\r\\n //\\r\\n // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:\\r\\n // 1. The pool's `accStargatePerShare` (and `lastRewardBlock`) gets updated.\\r\\n // 2. User receives the pending reward sent to his/her address.\\r\\n // 3. User's `amount` gets updated.\\r\\n // 4. User's `rewardDebt` gets updated.\\r\\n }\\r\\n // Info of each pool.\\r\\n struct PoolInfo {\\r\\n IERC20 lpToken; // Address of LP token contract.\\r\\n uint256 allocPoint; // How many allocation points assigned to this pool. STGs to distribute per block.\\r\\n uint256 lastRewardBlock; // Last block number that STGs distribution occurs.\\r\\n uint256 accMirrorgatePerShare; // Accumulated STGs per share, times 1e12. See below.\\r\\n }\\r\\n // The STG TOKEN!\\r\\n MirrorgateToken public mirrorgate;\\r\\n // Block number when bonus STG period ends.\\r\\n uint256 public bonusEndBlock;\\r\\n // STG tokens created per block.\\r\\n uint256 public mirrorgatePerBlock;\\r\\n // Bonus multiplier for early stargate makers.\\r\\n uint256 public constant BONUS_MULTIPLIER = 1;\\r\\n // Track which tokens have been added.\\r\\n mapping(address => bool) private addedLPTokens;\\r\\n\\r\\n mapping(uint256 => uint256) public lpBalances;\\r\\n\\r\\n // Info of each pool.\\r\\n PoolInfo[] public poolInfo;\\r\\n // Info of each user that stakes LP tokens.\\r\\n mapping(uint256 => mapping(address => UserInfo)) public userInfo;\\r\\n // Total allocation points. Must be the sum of all allocation points in all pools.\\r\\n uint256 public totalAllocPoint = 0;\\r\\n // The block number when STG mining starts.\\r\\n uint256 public startBlock;\\r\\n event Deposit(address indexed user, uint256 indexed pid, uint256 amount);\\r\\n event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);\\r\\n event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);\\r\\n\\r\\n constructor(\\r\\n MirrorgateToken _mirrorgate,\\r\\n uint256 _mirrorgatePerBlock,\\r\\n uint256 _startBlock,\\r\\n uint256 _bonusEndBlock\\r\\n ) {\\r\\n require(_startBlock >= block.number, \\\"LPStaking: _startBlock must be >= current block\\\");\\r\\n require(_bonusEndBlock >= _startBlock, \\\"LPStaking: _bonusEndBlock must be > than _startBlock\\\");\\r\\n require(address(_mirrorgate) != address(0x0), \\\"Mirrorgate: _mirrorgate cannot be 0x0\\\");\\r\\n mirrorgate = _mirrorgate;\\r\\n mirrorgatePerBlock = _mirrorgatePerBlock;\\r\\n startBlock = _startBlock;\\r\\n bonusEndBlock = _bonusEndBlock;\\r\\n }\\r\\n\\r\\n function poolLength() external view returns (uint256) {\\r\\n return poolInfo.length;\\r\\n }\\r\\n\\r\\n /// @notice handles adding a new LP token (Can only be called by the owner)\\r\\n /// @param _allocPoint The alloc point is used as the weight of the pool against all other alloc points added.\\r\\n /// @param _lpToken The lp token address\\r\\n function add(uint256 _allocPoint, IERC20 _lpToken) public onlyOwner {\\r\\n massUpdatePools();\\r\\n require(address(_lpToken) != address(0x0), \\\"Mirrorgate: lpToken cant be 0x0\\\");\\r\\n require(addedLPTokens[address(_lpToken)] == false, \\\"Mirrorgate: _lpToken already exists\\\");\\r\\n addedLPTokens[address(_lpToken)] = true;\\r\\n uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;\\r\\n totalAllocPoint = totalAllocPoint.add(_allocPoint);\\r\\n poolInfo.push(PoolInfo({lpToken: _lpToken, allocPoint: _allocPoint, lastRewardBlock: lastRewardBlock, accMirrorgatePerShare: 0}));\\r\\n }\\r\\n\\r\\n function set(uint256 _pid, uint256 _allocPoint) public onlyOwner {\\r\\n massUpdatePools();\\r\\n totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);\\r\\n poolInfo[_pid].allocPoint = _allocPoint;\\r\\n }\\r\\n\\r\\n function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {\\r\\n if (_to <= bonusEndBlock) {\\r\\n return _to.sub(_from).mul(BONUS_MULTIPLIER);\\r\\n } else if (_from >= bonusEndBlock) {\\r\\n return _to.sub(_from);\\r\\n } else {\\r\\n return bonusEndBlock.sub(_from).mul(BONUS_MULTIPLIER).add(_to.sub(bonusEndBlock));\\r\\n }\\r\\n }\\r\\n\\r\\n function pendingMirrorgate(uint256 _pid, address _user) external view returns (uint256) {\\r\\n PoolInfo storage pool = poolInfo[_pid];\\r\\n UserInfo storage user = userInfo[_pid][_user];\\r\\n uint256 accMirrorgatePerShare = pool.accMirrorgatePerShare;\\r\\n uint256 lpSupply = pool.lpToken.balanceOf(address(this));\\r\\n if (block.number > pool.lastRewardBlock && lpSupply != 0) {\\r\\n uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);\\r\\n uint256 mirrorgateReward = multiplier.mul(mirrorgatePerBlock).mul(pool.allocPoint).div(totalAllocPoint);\\r\\n accMirrorgatePerShare = accMirrorgatePerShare.add(mirrorgateReward.mul(1e12).div(lpSupply));\\r\\n }\\r\\n return user.amount.mul(accMirrorgatePerShare).div(1e12).sub(user.rewardDebt);\\r\\n }\\r\\n\\r\\n function massUpdatePools() public {\\r\\n uint256 length = poolInfo.length;\\r\\n for (uint256 pid = 0; pid < length; ++pid) {\\r\\n updatePool(pid);\\r\\n }\\r\\n }\\r\\n\\r\\n function updatePool(uint256 _pid) public {\\r\\n PoolInfo storage pool = poolInfo[_pid];\\r\\n if (block.number <= pool.lastRewardBlock) {\\r\\n return;\\r\\n }\\r\\n uint256 lpSupply = pool.lpToken.balanceOf(address(this));\\r\\n if (lpSupply == 0) {\\r\\n pool.lastRewardBlock = block.number;\\r\\n return;\\r\\n }\\r\\n uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);\\r\\n uint256 mirrorgateReward = multiplier.mul(mirrorgatePerBlock).mul(pool.allocPoint).div(totalAllocPoint);\\r\\n\\r\\n pool.accMirrorgatePerShare = pool.accMirrorgatePerShare.add(mirrorgateReward.mul(1e12).div(lpSupply));\\r\\n pool.lastRewardBlock = block.number;\\r\\n }\\r\\n\\r\\n function deposit(uint256 _pid, uint256 _amount) public {\\r\\n PoolInfo storage pool = poolInfo[_pid];\\r\\n UserInfo storage user = userInfo[_pid][msg.sender];\\r\\n updatePool(_pid);\\r\\n if (user.amount > 0) {\\r\\n uint256 pending = user.amount.mul(pool.accMirrorgatePerShare).div(1e12).sub(user.rewardDebt);\\r\\n safeMirrorgateTransfer(msg.sender, pending);\\r\\n }\\r\\n pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);\\r\\n user.amount = user.amount.add(_amount);\\r\\n user.rewardDebt = user.amount.mul(pool.accMirrorgatePerShare).div(1e12);\\r\\n lpBalances[_pid] = lpBalances[_pid].add(_amount);\\r\\n emit Deposit(msg.sender, _pid, _amount);\\r\\n }\\r\\n\\r\\n function withdraw(uint256 _pid, uint256 _amount) public {\\r\\n PoolInfo storage pool = poolInfo[_pid];\\r\\n UserInfo storage user = userInfo[_pid][msg.sender];\\r\\n require(user.amount >= _amount, \\\"withdraw: _amount is too large\\\");\\r\\n updatePool(_pid);\\r\\n uint256 pending = user.amount.mul(pool.accMirrorgatePerShare).div(1e12).sub(user.rewardDebt);\\r\\n safeMirrorgateTransfer(msg.sender, pending);\\r\\n user.amount = user.amount.sub(_amount);\\r\\n user.rewardDebt = user.amount.mul(pool.accMirrorgatePerShare).div(1e12);\\r\\n pool.lpToken.safeTransfer(address(msg.sender), _amount);\\r\\n lpBalances[_pid] = lpBalances[_pid].sub(_amount);\\r\\n emit Withdraw(msg.sender, _pid, _amount);\\r\\n }\\r\\n\\r\\n /// @notice Withdraw without caring about rewards.\\r\\n /// @param _pid The pid specifies the pool\\r\\n function emergencyWithdraw(uint256 _pid) public {\\r\\n PoolInfo storage pool = poolInfo[_pid];\\r\\n UserInfo storage user = userInfo[_pid][msg.sender];\\r\\n uint256 userAmount = user.amount;\\r\\n user.amount = 0;\\r\\n user.rewardDebt = 0;\\r\\n pool.lpToken.safeTransfer(address(msg.sender), userAmount);\\r\\n lpBalances[_pid] = lpBalances[_pid].sub(userAmount);\\r\\n emit EmergencyWithdraw(msg.sender, _pid, userAmount);\\r\\n }\\r\\n\\r\\n /// @notice Safe transfer function, just in case if rounding error causes pool to not have enough STGs.\\r\\n /// @param _to The address to transfer tokens to\\r\\n /// @param _amount The quantity to transfer\\r\\n function safeMirrorgateTransfer(address _to, uint256 _amount) internal {\\r\\n uint256 mirrorgateBal = mirrorgate.balanceOf(address(this));\\r\\n if (_amount > mirrorgateBal) {\\r\\n IERC20(mirrorgate).safeTransfer(_to, mirrorgateBal);\\r\\n } else {\\r\\n IERC20(mirrorgate).safeTransfer(_to, _amount);\\r\\n }\\r\\n }\\r\\n\\r\\n function setMirrorgatePerBlock(uint256 _mirrorgatePerBlock) external onlyOwner {\\r\\n massUpdatePools();\\r\\n mirrorgatePerBlock = _mirrorgatePerBlock;\\r\\n }\\r\\n\\r\\n // Override the renounce ownership inherited by zeppelin ownable\\r\\n function renounceOwnership() public override onlyOwner {}\\r\\n}\\r\\n\",\"keccak256\":\"0x6cbbd76e862d345abe8f3d80be13da194a086a47567ae353d0a329392ca469ac\",\"license\":\"BUSL-1.1\"},\"contracts/MirrorgateToken.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\r\\n\\r\\npragma solidity 0.7.6;\\r\\n\\r\\nimport \\\"./OmnichainFungibleToken.sol\\\";\\r\\n\\r\\ncontract MirrorgateToken is OmnichainFungibleToken {\\r\\n constructor(\\r\\n string memory _name,\\r\\n string memory _symbol,\\r\\n address _endpoint,\\r\\n uint16 _mainEndpointId,\\r\\n uint256 _initialSupplyOnMainEndpoint\\r\\n ) OmnichainFungibleToken(_name, _symbol, _endpoint, _mainEndpointId, _initialSupplyOnMainEndpoint) {}\\r\\n}\\r\\n\",\"keccak256\":\"0xa63c7fd93183a00705208730e515760dc4542f4f4278a7f201fa5c619594e79a\",\"license\":\"BUSL-1.1\"},\"contracts/OmnichainFungibleToken.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\r\\n\\r\\npragma solidity 0.7.6;\\r\\n\\r\\nimport \\\"@openzeppelin/contracts/token/ERC20/ERC20.sol\\\";\\r\\nimport \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\r\\nimport \\\"./interfaces/ILayerZeroReceiver.sol\\\";\\r\\nimport \\\"./interfaces/ILayerZeroEndpoint.sol\\\";\\r\\nimport \\\"./interfaces/ILayerZeroUserApplicationConfig.sol\\\";\\r\\n\\r\\n//---------------------------------------------------------------------------\\r\\n// THIS CONTRACT IS OF BUSINESS LICENSE. CONTACT US BEFORE YOU USE IT.\\r\\n//\\r\\n// LayerZero is pushing now a new cross-chain token standard with permissive license soon\\r\\n//\\r\\n// Stay tuned for maximum cross-chain compatability of your token\\r\\n//---------------------------------------------------------------------------\\r\\ncontract OmnichainFungibleToken is ERC20, Ownable, ILayerZeroReceiver, ILayerZeroUserApplicationConfig {\\r\\n ILayerZeroEndpoint immutable public endpoint;\\r\\n mapping(uint16 => bytes) public dstContractLookup; // a map of the connected contracts\\r\\n bool public paused; // indicates cross chain transfers are paused\\r\\n bool public isMain; // indicates this contract is on the main chain\\r\\n\\r\\n event Paused(bool isPaused);\\r\\n event SendToChain(uint16 srcChainId, bytes toAddress, uint256 qty, uint64 nonce);\\r\\n event ReceiveFromChain(uint16 srcChainId, address toAddress, uint256 qty, uint64 nonce);\\r\\n\\r\\n constructor(\\r\\n string memory _name,\\r\\n string memory _symbol,\\r\\n address _endpoint,\\r\\n uint16 _mainChainId,\\r\\n uint256 _initialSupplyOnMainEndpoint\\r\\n ) ERC20(_name, _symbol) {\\r\\n // only mint the total supply on the main chain\\r\\n if (ILayerZeroEndpoint(_endpoint).getChainId() == _mainChainId) {\\r\\n _mint(msg.sender, _initialSupplyOnMainEndpoint);\\r\\n isMain = true;\\r\\n }\\r\\n // set the LayerZero endpoint\\r\\n endpoint = ILayerZeroEndpoint(_endpoint);\\r\\n }\\r\\n\\r\\n function pauseSendTokens(bool _pause) external onlyOwner {\\r\\n paused = _pause;\\r\\n emit Paused(_pause);\\r\\n }\\r\\n\\r\\n function setDestination(uint16 _dstChainId, bytes calldata _destinationContractAddress) public onlyOwner {\\r\\n dstContractLookup[_dstChainId] = _destinationContractAddress;\\r\\n }\\r\\n\\r\\n function chainId() external view returns (uint16){\\r\\n return endpoint.getChainId();\\r\\n }\\r\\n\\r\\n function sendTokens(\\r\\n uint16 _dstChainId, // send tokens to this chainId\\r\\n bytes calldata _to, // where to deliver the tokens on the destination chain\\r\\n uint256 _qty, // how many tokens to send\\r\\n address _zroPaymentAddress, // ZRO payment address\\r\\n bytes calldata _adapterParam // txParameters\\r\\n ) public payable {\\r\\n require(!paused, \\\"OFT: sendTokens() is currently paused\\\");\\r\\n\\r\\n // lock by transferring to this contract if leaving the main chain, otherwise burn\\r\\n if (isMain) {\\r\\n _transfer(msg.sender, address(this), _qty);\\r\\n } else {\\r\\n _burn(msg.sender, _qty);\\r\\n }\\r\\n\\r\\n // abi.encode() the payload with the values to send\\r\\n bytes memory payload = abi.encode(_to, _qty);\\r\\n\\r\\n // send LayerZero message\\r\\n endpoint.send{value: msg.value}(\\r\\n _dstChainId, // destination chainId\\r\\n dstContractLookup[_dstChainId], // destination UA address\\r\\n payload, // abi.encode()'ed bytes\\r\\n msg.sender, // refund address (LayerZero will refund any extra gas back to msg.sender\\r\\n _zroPaymentAddress, // 'zroPaymentAddress'\\r\\n _adapterParam // 'adapterParameters'\\r\\n );\\r\\n uint64 nonce = endpoint.getOutboundNonce(_dstChainId, address(this));\\r\\n emit SendToChain(_dstChainId, _to, _qty, nonce);\\r\\n }\\r\\n\\r\\n function lzReceive(\\r\\n uint16 _srcChainId,\\r\\n bytes memory _fromAddress,\\r\\n uint64 _nonce,\\r\\n bytes memory _payload\\r\\n ) external override {\\r\\n require(msg.sender == address(endpoint)); // lzReceive must only be called by the endpoint\\r\\n require(\\r\\n _fromAddress.length == dstContractLookup[_srcChainId].length && keccak256(_fromAddress) == keccak256(dstContractLookup[_srcChainId]),\\r\\n \\\"OFT: invalid source sending contract\\\"\\r\\n );\\r\\n\\r\\n // decode and load the toAddress\\r\\n (bytes memory _to, uint256 _qty) = abi.decode(_payload, (bytes, uint256));\\r\\n address toAddress;\\r\\n assembly { toAddress := mload(add(_to, 20)) }\\r\\n\\r\\n // if the toAddress is 0x0, burn it\\r\\n if (toAddress == address(0x0)) toAddress == address(0xdEaD);\\r\\n\\r\\n // on the main chain unlock via transfer, otherwise _mint\\r\\n if (isMain) {\\r\\n _transfer(address(this), toAddress, _qty);\\r\\n } else {\\r\\n _mint(toAddress, _qty);\\r\\n }\\r\\n\\r\\n emit ReceiveFromChain(_srcChainId, toAddress, _qty, _nonce);\\r\\n }\\r\\n\\r\\n function estimateSendTokensFee(uint16 _dstChainId, bytes calldata _toAddress, bool _useZro, bytes calldata _txParameters) external view returns (uint256 nativeFee, uint256 zroFee) {\\r\\n // mock the payload for sendTokens()\\r\\n bytes memory payload = abi.encode(_toAddress, 1);\\r\\n return endpoint.estimateFees(_dstChainId, address(this), payload, _useZro, _txParameters);\\r\\n }\\r\\n\\r\\n //---------------------------DAO CALL----------------------------------------\\r\\n // generic config for user Application\\r\\n function setConfig(\\r\\n uint16 _version,\\r\\n uint16 _chainId,\\r\\n uint256 _configType,\\r\\n bytes calldata _config\\r\\n ) external override onlyOwner {\\r\\n endpoint.setConfig(_version, _chainId, _configType, _config);\\r\\n }\\r\\n\\r\\n function setSendVersion(uint16 _version) external override onlyOwner {\\r\\n endpoint.setSendVersion(_version);\\r\\n }\\r\\n\\r\\n function setReceiveVersion(uint16 _version) external override onlyOwner {\\r\\n endpoint.setReceiveVersion(_version);\\r\\n }\\r\\n\\r\\n function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external override onlyOwner {\\r\\n endpoint.forceResumeReceive(_srcChainId, _srcAddress);\\r\\n }\\r\\n\\r\\n function renounceOwnership() public override onlyOwner {}\\r\\n}\\r\\n\",\"keccak256\":\"0xa8f71fb896a51c1e8dcf6333b6cbd993ceac7abb1d474a57128828bf2db76c1b\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroEndpoint.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\r\\n\\r\\npragma solidity >=0.5.0;\\r\\n\\r\\nimport \\\"./ILayerZeroUserApplicationConfig.sol\\\";\\r\\n\\r\\ninterface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig {\\r\\n // @notice send a LayerZero message to the specified address at a LayerZero endpoint.\\r\\n // @param _dstChainId - the destination chain identifier\\r\\n // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains\\r\\n // @param _payload - a custom bytes payload to send to the destination contract\\r\\n // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address\\r\\n // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction\\r\\n // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination\\r\\n function send(uint16 _dstChainId, bytes calldata _destination, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable;\\r\\n\\r\\n // @notice used by the messaging library to publish verified payload\\r\\n // @param _srcChainId - the source chain identifier\\r\\n // @param _srcAddress - the source contract (as bytes) at the source chain\\r\\n // @param _dstAddress - the address on destination chain\\r\\n // @param _nonce - the unbound message ordering nonce\\r\\n // @param _gasLimit - the gas limit for external contract execution\\r\\n // @param _payload - verified payload to send to the destination contract\\r\\n function receivePayload(uint16 _srcChainId, bytes calldata _srcAddress, address _dstAddress, uint64 _nonce, uint _gasLimit, bytes calldata _payload) external;\\r\\n\\r\\n // @notice get the inboundNonce of a receiver from a source chain which could be EVM or non-EVM chain\\r\\n // @param _srcChainId - the source chain identifier\\r\\n // @param _srcAddress - the source chain contract address\\r\\n function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64);\\r\\n\\r\\n // @notice get the outboundNonce from this source chain which, consequently, is always an EVM\\r\\n // @param _srcAddress - the source chain contract address\\r\\n function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64);\\r\\n\\r\\n // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery\\r\\n // @param _dstChainId - the destination chain identifier\\r\\n // @param _userApplication - the user app address on this EVM chain\\r\\n // @param _payload - the custom message to send over LayerZero\\r\\n // @param _payInZRO - if false, user app pays the protocol fee in native token\\r\\n // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain\\r\\n function estimateFees(uint16 _dstChainId, address _userApplication, bytes calldata _payload, bool _payInZRO, bytes calldata _adapterParam) external view returns (uint nativeFee, uint zroFee);\\r\\n\\r\\n // @notice get this Endpoint's immutable source identifier\\r\\n function getChainId() external view returns (uint16);\\r\\n\\r\\n // @notice the interface to retry failed message on this Endpoint destination\\r\\n // @param _srcChainId - the source chain identifier\\r\\n // @param _srcAddress - the source chain contract address\\r\\n // @param _payload - the payload to be retried\\r\\n function retryPayload(uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload) external;\\r\\n\\r\\n // @notice query if any STORED payload (message blocking) at the endpoint.\\r\\n // @param _srcChainId - the source chain identifier\\r\\n // @param _srcAddress - the source chain contract address\\r\\n function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool);\\r\\n\\r\\n // @notice query if the _libraryAddress is valid for sending msgs.\\r\\n // @param _userApplication - the user app address on this EVM chain\\r\\n function getSendLibraryAddress(address _userApplication) external view returns (address);\\r\\n\\r\\n // @notice query if the _libraryAddress is valid for receiving msgs.\\r\\n // @param _userApplication - the user app address on this EVM chain\\r\\n function getReceiveLibraryAddress(address _userApplication) external view returns (address);\\r\\n\\r\\n // @notice query if the non-reentrancy guard for send() is on\\r\\n // @return true if the guard is on. false otherwise\\r\\n function isSendingPayload() external view returns (bool);\\r\\n\\r\\n // @notice query if the non-reentrancy guard for receive() is on\\r\\n // @return true if the guard is on. false otherwise\\r\\n function isReceivingPayload() external view returns (bool);\\r\\n\\r\\n // @notice get the configuration of the LayerZero messaging library of the specified version\\r\\n // @param _version - messaging library version\\r\\n // @param _chainId - the chainId for the pending config change\\r\\n // @param _userApplication - the contract address of the user application\\r\\n // @param _configType - type of configuration. every messaging library has its own convention.\\r\\n function getConfig(uint16 _version, uint16 _chainId, address _userApplication, uint _configType) external view returns (bytes memory);\\r\\n\\r\\n // @notice get the send() LayerZero messaging library version\\r\\n // @param _userApplication - the contract address of the user application\\r\\n function getSendVersion(address _userApplication) external view returns (uint16);\\r\\n\\r\\n // @notice get the lzReceive() LayerZero messaging library version\\r\\n // @param _userApplication - the contract address of the user application\\r\\n function getReceiveVersion(address _userApplication) external view returns (uint16);\\r\\n}\\r\\n\",\"keccak256\":\"0x5304d445f73fc334336fb88caa0eec207e238df582485799828fe2b100bd8343\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroReceiver.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\r\\n\\r\\npragma solidity >=0.5.0;\\r\\n\\r\\ninterface ILayerZeroReceiver {\\r\\n // @notice LayerZero endpoint will invoke this function to deliver the message on the destination\\r\\n // @param _srcChainId - the source endpoint identifier\\r\\n // @param _srcAddress - the source sending contract address from the source chain\\r\\n // @param _nonce - the ordered message nonce\\r\\n // @param _payload - the signed payload is the UA bytes has encoded to be sent\\r\\n function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external;\\r\\n}\\r\\n\",\"keccak256\":\"0xada017f02be5d557d1c8a1c89c972bf59799f82c418fe5e9a4de370f2fc9c1c1\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroUserApplicationConfig.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\r\\n\\r\\npragma solidity >=0.5.0;\\r\\n\\r\\ninterface ILayerZeroUserApplicationConfig {\\r\\n // @notice set the configuration of the LayerZero messaging library of the specified version\\r\\n // @param _version - messaging library version\\r\\n // @param _chainId - the chainId for the pending config change\\r\\n // @param _configType - type of configuration. every messaging library has its own convention.\\r\\n // @param _config - configuration in the bytes. can encode arbitrary content.\\r\\n function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external;\\r\\n\\r\\n // @notice set the send() LayerZero messaging library version to _version\\r\\n // @param _version - new messaging library version\\r\\n function setSendVersion(uint16 _version) external;\\r\\n\\r\\n // @notice set the lzReceive() LayerZero messaging library version to _version\\r\\n // @param _version - new messaging library version\\r\\n function setReceiveVersion(uint16 _version) external;\\r\\n\\r\\n // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload\\r\\n // @param _srcChainId - the chainId of the source chain\\r\\n // @param _srcAddress - the contract address of the source contract at the source chain\\r\\n function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external;\\r\\n}\\r\\n\",\"keccak256\":\"0x3f6707ec8829588ae4eb629ca952b9b019532ce47aa01aad48bcdf9d03c72bac\",\"license\":\"BUSL-1.1\"}},\"version\":1}",
  537. "bytecode": "0x608060405260006008553480156200001657600080fd5b506040516200194238038062001942833981810160405260808110156200003c57600080fd5b508051602082015160408301516060909301519192909160006200005f620001a5565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35043821015620000ea5760405162461bcd60e51b815260040180806020018281038252602f815260200180620018ee602f913960400191505060405180910390fd5b818110156200012b5760405162461bcd60e51b8152600401808060200182810382526034815260200180620018ba6034913960400191505060405180910390fd5b6001600160a01b038416620001725760405162461bcd60e51b81526004018080602001828103825260258152602001806200191d6025913960400191505060405180910390fd5b600180546001600160a01b0319166001600160a01b039590951694909417909355600391909155600955600255620001a9565b3390565b61170180620001b96000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80635d0ba537116100c357806393f1a40b1161007c57806393f1a40b14610303578063c4cdd4ce14610348578063e2bbb15814610350578063e52d1f3214610373578063f2fde38b14610390578063f35c150e146103b65761014d565b80635d0ba5371461029c578063630b5ba1146102c0578063715018a6146102c85780638aa28550146102d05780638da5cb5b146102d85780638dbb1e3a146102e05761014d565b80631aed6553116101155780631aed6553146102035780632b8bbbe81461020b578063441a3e701461023757806348cd4cb11461025a57806351eb05a6146102625780635312ea8e1461027f5761014d565b80630328e32f14610152578063081e3eda146101815780631526fe271461018957806317caf6f1146101d65780631ab06ee5146101de575b600080fd5b61016f6004803603602081101561016857600080fd5b50356103e2565b60408051918252519081900360200190f35b61016f6103f4565b6101a66004803603602081101561019f57600080fd5b50356103fa565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b61016f61043e565b610201600480360360408110156101f457600080fd5b5080359060200135610444565b005b61016f610518565b6102016004803603604081101561022157600080fd5b50803590602001356001600160a01b031661051e565b6102016004803603604081101561024d57600080fd5b5080359060200135610770565b61016f6108fc565b6102016004803603602081101561027857600080fd5b5035610902565b6102016004803603602081101561029557600080fd5b5035610a32565b6102a4610afc565b604080516001600160a01b039092168252519081900360200190f35b610201610b0b565b610201610b2e565b61016f610b92565b6102a4610b97565b61016f600480360360408110156102f657600080fd5b5080359060200135610ba6565b61032f6004803603604081101561031957600080fd5b50803590602001356001600160a01b0316610c12565b6040805192835260208301919091528051918290030190f35b61016f610c36565b6102016004803603604081101561036657600080fd5b5080359060200135610c3c565b6102016004803603602081101561038957600080fd5b5035610d6f565b610201600480360360208110156103a657600080fd5b50356001600160a01b0316610dde565b61016f600480360360408110156103cc57600080fd5b50803590602001356001600160a01b0316610ee0565b60056020526000908152604090205481565b60065490565b6006818154811061040a57600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60085481565b61044c611042565b6001600160a01b031661045d610b97565b6001600160a01b0316146104a6576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b6104ae610b0b565b6104eb816104e5600685815481106104c257fe5b90600052602060002090600402016001015460085461104690919063ffffffff16565b906110a3565b60088190555080600683815481106104ff57fe5b9060005260206000209060040201600101819055505050565b60025481565b610526611042565b6001600160a01b0316610537610b97565b6001600160a01b031614610580576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b610588610b0b565b6001600160a01b0381166105e3576040805162461bcd60e51b815260206004820152601f60248201527f4d6972726f72676174653a206c70546f6b656e2063616e742062652030783000604482015290519081900360640190fd5b6001600160a01b03811660009081526004602052604090205460ff161561063b5760405162461bcd60e51b815260040180806020018281038252602381526020018061165f6023913960400191505060405180910390fd5b6001600160a01b0381166000908152600460205260408120805460ff19166001179055600954431161066f57600954610671565b435b60085490915061068190846110a3565b600855604080516080810182526001600160a01b0393841681526020810194855290810191825260006060820181815260068054600181018255925291517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600490920291820180546001600160a01b031916919095161790935592517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40830155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4182015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4290910155565b60006006838154811061077f57fe5b6000918252602080832086845260078252604080852033865290925292208054600490920290920192508311156107fd576040805162461bcd60e51b815260206004820152601e60248201527f77697468647261773a205f616d6f756e7420697320746f6f206c617267650000604482015290519081900360640190fd5b61080684610902565b6000610840826001015461083a64e8d4a510006108348760030154876000015461110490919063ffffffff16565b9061115d565b90611046565b905061084c33826111c4565b81546108589085611046565b80835560038401546108759164e8d4a51000916108349190611104565b60018301558254610890906001600160a01b0316338661127d565b6000858152600560205260409020546108a99085611046565b6000868152600560209081526040918290209290925580518681529051879233927ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568929081900390910190a35050505050565b60095481565b60006006828154811061091157fe5b90600052602060002090600402019050806002015443116109325750610a2f565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561097c57600080fd5b505afa158015610990573d6000803e3d6000fd5b505050506040513d60208110156109a657600080fd5b50519050806109bc575043600290910155610a2f565b60006109cc836002015443610ba6565b905060006109f960085461083486600101546109f36003548761110490919063ffffffff16565b90611104565b9050610a1c610a11846108348464e8d4a51000611104565b6003860154906110a3565b6003850155505043600290920191909155505b50565b600060068281548110610a4157fe5b600091825260208083208584526007825260408085203380875293528420805485825560018201959095556004909302018054909450919291610a91916001600160a01b0391909116908361127d565b600084815260056020526040902054610aaa9082611046565b6000858152600560209081526040918290209290925580518381529051869233927fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595929081900390910190a350505050565b6001546001600160a01b031681565b60065460005b81811015610b2a57610b2281610902565b600101610b11565b5050565b610b36611042565b6001600160a01b0316610b47610b97565b6001600160a01b031614610b90576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b565b600181565b6000546001600160a01b031690565b60006002548211610bc757610bc060016109f38486611046565b9050610c0c565b6002548310610bda57610bc08284611046565b610bc0610bf26002548461104690919063ffffffff16565b6104e560016109f38760025461104690919063ffffffff16565b92915050565b60076020908152600092835260408084209091529082529020805460019091015482565b60035481565b600060068381548110610c4b57fe5b60009182526020808320868452600782526040808520338652909252922060049091029091019150610c7c84610902565b805415610cbf576000610cb1826001015461083a64e8d4a510006108348760030154876000015461110490919063ffffffff16565b9050610cbd33826111c4565b505b8154610cd6906001600160a01b03163330866112cf565b8054610ce290846110a3565b8082556003830154610cff9164e8d4a51000916108349190611104565b6001820155600084815260056020526040902054610d1d90846110a3565b6000858152600560209081526040918290209290925580518581529051869233927f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15929081900390910190a350505050565b610d77611042565b6001600160a01b0316610d88610b97565b6001600160a01b031614610dd1576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b610dd9610b0b565b600355565b610de6611042565b6001600160a01b0316610df7610b97565b6001600160a01b031614610e40576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b6001600160a01b038116610e855760405162461bcd60e51b81526004018080602001828103825260268152602001806115f26026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008060068481548110610ef057fe5b600091825260208083208784526007825260408085206001600160a01b03898116875290845281862060049586029093016003810154815484516370a0823160e01b81523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b158015610f6e57600080fd5b505afa158015610f82573d6000803e3d6000fd5b505050506040513d6020811015610f9857600080fd5b5051600285015490915043118015610faf57508015155b1561100f576000610fc4856002015443610ba6565b90506000610feb60085461083488600101546109f36003548761110490919063ffffffff16565b905061100a611003846108348464e8d4a51000611104565b85906110a3565b935050505b611037836001015461083a64e8d4a5100061083486886000015461110490919063ffffffff16565b979650505050505050565b3390565b60008282111561109d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000828201838110156110fd576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60008261111357506000610c0c565b8282028284828161112057fe5b04146110fd5760405162461bcd60e51b815260040180806020018281038252602181526020018061163e6021913960400191505060405180910390fd5b60008082116111b3576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816111bc57fe5b049392505050565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561120f57600080fd5b505afa158015611223573d6000803e3d6000fd5b505050506040513d602081101561123957600080fd5b50519050808211156112615760015461125c906001600160a01b0316848361127d565b611278565b600154611278906001600160a01b0316848461127d565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261127890849061132f565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261132990859061132f565b50505050565b6000611384826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113e09092919063ffffffff16565b805190915015611278578080602001905160208110156113a357600080fd5b50516112785760405162461bcd60e51b815260040180806020018281038252602a8152602001806116a2602a913960400191505060405180910390fd5b60606113ef84846000856113f7565b949350505050565b6060824710156114385760405162461bcd60e51b81526004018080602001828103825260268152602001806116186026913960400191505060405180910390fd5b61144185611547565b611492576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106114d05780518252601f1990920191602091820191016114b1565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611532576040519150601f19603f3d011682016040523d82523d6000602084013e611537565b606091505b509150915061103782828661154d565b3b151590565b6060831561155c5750816110fd565b82511561156c5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115b657818101518382015260200161159e565b50505050905090810190601f1680156115e35780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774d6972726f72676174653a205f6c70546f6b656e20616c7265616479206578697374734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212200f325103335db8d15ad0c4465bbe99d5771005674c996705853fc2f9f5e0e3a364736f6c634300070600334c505374616b696e673a205f626f6e7573456e64426c6f636b206d757374206265203e207468616e205f7374617274426c6f636b4c505374616b696e673a205f7374617274426c6f636b206d757374206265203e3d2063757272656e7420626c6f636b4d6972726f72676174653a205f6d6972726f72676174652063616e6e6f7420626520307830",
  538. "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061014d5760003560e01c80635d0ba537116100c357806393f1a40b1161007c57806393f1a40b14610303578063c4cdd4ce14610348578063e2bbb15814610350578063e52d1f3214610373578063f2fde38b14610390578063f35c150e146103b65761014d565b80635d0ba5371461029c578063630b5ba1146102c0578063715018a6146102c85780638aa28550146102d05780638da5cb5b146102d85780638dbb1e3a146102e05761014d565b80631aed6553116101155780631aed6553146102035780632b8bbbe81461020b578063441a3e701461023757806348cd4cb11461025a57806351eb05a6146102625780635312ea8e1461027f5761014d565b80630328e32f14610152578063081e3eda146101815780631526fe271461018957806317caf6f1146101d65780631ab06ee5146101de575b600080fd5b61016f6004803603602081101561016857600080fd5b50356103e2565b60408051918252519081900360200190f35b61016f6103f4565b6101a66004803603602081101561019f57600080fd5b50356103fa565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b61016f61043e565b610201600480360360408110156101f457600080fd5b5080359060200135610444565b005b61016f610518565b6102016004803603604081101561022157600080fd5b50803590602001356001600160a01b031661051e565b6102016004803603604081101561024d57600080fd5b5080359060200135610770565b61016f6108fc565b6102016004803603602081101561027857600080fd5b5035610902565b6102016004803603602081101561029557600080fd5b5035610a32565b6102a4610afc565b604080516001600160a01b039092168252519081900360200190f35b610201610b0b565b610201610b2e565b61016f610b92565b6102a4610b97565b61016f600480360360408110156102f657600080fd5b5080359060200135610ba6565b61032f6004803603604081101561031957600080fd5b50803590602001356001600160a01b0316610c12565b6040805192835260208301919091528051918290030190f35b61016f610c36565b6102016004803603604081101561036657600080fd5b5080359060200135610c3c565b6102016004803603602081101561038957600080fd5b5035610d6f565b610201600480360360208110156103a657600080fd5b50356001600160a01b0316610dde565b61016f600480360360408110156103cc57600080fd5b50803590602001356001600160a01b0316610ee0565b60056020526000908152604090205481565b60065490565b6006818154811061040a57600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60085481565b61044c611042565b6001600160a01b031661045d610b97565b6001600160a01b0316146104a6576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b6104ae610b0b565b6104eb816104e5600685815481106104c257fe5b90600052602060002090600402016001015460085461104690919063ffffffff16565b906110a3565b60088190555080600683815481106104ff57fe5b9060005260206000209060040201600101819055505050565b60025481565b610526611042565b6001600160a01b0316610537610b97565b6001600160a01b031614610580576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b610588610b0b565b6001600160a01b0381166105e3576040805162461bcd60e51b815260206004820152601f60248201527f4d6972726f72676174653a206c70546f6b656e2063616e742062652030783000604482015290519081900360640190fd5b6001600160a01b03811660009081526004602052604090205460ff161561063b5760405162461bcd60e51b815260040180806020018281038252602381526020018061165f6023913960400191505060405180910390fd5b6001600160a01b0381166000908152600460205260408120805460ff19166001179055600954431161066f57600954610671565b435b60085490915061068190846110a3565b600855604080516080810182526001600160a01b0393841681526020810194855290810191825260006060820181815260068054600181018255925291517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600490920291820180546001600160a01b031916919095161790935592517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40830155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4182015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4290910155565b60006006838154811061077f57fe5b6000918252602080832086845260078252604080852033865290925292208054600490920290920192508311156107fd576040805162461bcd60e51b815260206004820152601e60248201527f77697468647261773a205f616d6f756e7420697320746f6f206c617267650000604482015290519081900360640190fd5b61080684610902565b6000610840826001015461083a64e8d4a510006108348760030154876000015461110490919063ffffffff16565b9061115d565b90611046565b905061084c33826111c4565b81546108589085611046565b80835560038401546108759164e8d4a51000916108349190611104565b60018301558254610890906001600160a01b0316338661127d565b6000858152600560205260409020546108a99085611046565b6000868152600560209081526040918290209290925580518681529051879233927ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568929081900390910190a35050505050565b60095481565b60006006828154811061091157fe5b90600052602060002090600402019050806002015443116109325750610a2f565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561097c57600080fd5b505afa158015610990573d6000803e3d6000fd5b505050506040513d60208110156109a657600080fd5b50519050806109bc575043600290910155610a2f565b60006109cc836002015443610ba6565b905060006109f960085461083486600101546109f36003548761110490919063ffffffff16565b90611104565b9050610a1c610a11846108348464e8d4a51000611104565b6003860154906110a3565b6003850155505043600290920191909155505b50565b600060068281548110610a4157fe5b600091825260208083208584526007825260408085203380875293528420805485825560018201959095556004909302018054909450919291610a91916001600160a01b0391909116908361127d565b600084815260056020526040902054610aaa9082611046565b6000858152600560209081526040918290209290925580518381529051869233927fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595929081900390910190a350505050565b6001546001600160a01b031681565b60065460005b81811015610b2a57610b2281610902565b600101610b11565b5050565b610b36611042565b6001600160a01b0316610b47610b97565b6001600160a01b031614610b90576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b565b600181565b6000546001600160a01b031690565b60006002548211610bc757610bc060016109f38486611046565b9050610c0c565b6002548310610bda57610bc08284611046565b610bc0610bf26002548461104690919063ffffffff16565b6104e560016109f38760025461104690919063ffffffff16565b92915050565b60076020908152600092835260408084209091529082529020805460019091015482565b60035481565b600060068381548110610c4b57fe5b60009182526020808320868452600782526040808520338652909252922060049091029091019150610c7c84610902565b805415610cbf576000610cb1826001015461083a64e8d4a510006108348760030154876000015461110490919063ffffffff16565b9050610cbd33826111c4565b505b8154610cd6906001600160a01b03163330866112cf565b8054610ce290846110a3565b8082556003830154610cff9164e8d4a51000916108349190611104565b6001820155600084815260056020526040902054610d1d90846110a3565b6000858152600560209081526040918290209290925580518581529051869233927f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15929081900390910190a350505050565b610d77611042565b6001600160a01b0316610d88610b97565b6001600160a01b031614610dd1576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b610dd9610b0b565b600355565b610de6611042565b6001600160a01b0316610df7610b97565b6001600160a01b031614610e40576040805162461bcd60e51b81526020600482018190526024820152600080516020611682833981519152604482015290519081900360640190fd5b6001600160a01b038116610e855760405162461bcd60e51b81526004018080602001828103825260268152602001806115f26026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008060068481548110610ef057fe5b600091825260208083208784526007825260408085206001600160a01b03898116875290845281862060049586029093016003810154815484516370a0823160e01b81523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b158015610f6e57600080fd5b505afa158015610f82573d6000803e3d6000fd5b505050506040513d6020811015610f9857600080fd5b5051600285015490915043118015610faf57508015155b1561100f576000610fc4856002015443610ba6565b90506000610feb60085461083488600101546109f36003548761110490919063ffffffff16565b905061100a611003846108348464e8d4a51000611104565b85906110a3565b935050505b611037836001015461083a64e8d4a5100061083486886000015461110490919063ffffffff16565b979650505050505050565b3390565b60008282111561109d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000828201838110156110fd576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60008261111357506000610c0c565b8282028284828161112057fe5b04146110fd5760405162461bcd60e51b815260040180806020018281038252602181526020018061163e6021913960400191505060405180910390fd5b60008082116111b3576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816111bc57fe5b049392505050565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561120f57600080fd5b505afa158015611223573d6000803e3d6000fd5b505050506040513d602081101561123957600080fd5b50519050808211156112615760015461125c906001600160a01b0316848361127d565b611278565b600154611278906001600160a01b0316848461127d565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261127890849061132f565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261132990859061132f565b50505050565b6000611384826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113e09092919063ffffffff16565b805190915015611278578080602001905160208110156113a357600080fd5b50516112785760405162461bcd60e51b815260040180806020018281038252602a8152602001806116a2602a913960400191505060405180910390fd5b60606113ef84846000856113f7565b949350505050565b6060824710156114385760405162461bcd60e51b81526004018080602001828103825260268152602001806116186026913960400191505060405180910390fd5b61144185611547565b611492576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106114d05780518252601f1990920191602091820191016114b1565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611532576040519150601f19603f3d011682016040523d82523d6000602084013e611537565b606091505b509150915061103782828661154d565b3b151590565b6060831561155c5750816110fd565b82511561156c5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115b657818101518382015260200161159e565b50505050905090810190601f1680156115e35780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774d6972726f72676174653a205f6c70546f6b656e20616c7265616479206578697374734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212200f325103335db8d15ad0c4465bbe99d5771005674c996705853fc2f9f5e0e3a364736f6c63430007060033",
  539. "devdoc": {
  540. "kind": "dev",
  541. "methods": {
  542. "add(uint256,address)": {
  543. "params": {
  544. "_allocPoint": "The alloc point is used as the weight of the pool against all other alloc points added.",
  545. "_lpToken": "The lp token address"
  546. }
  547. },
  548. "emergencyWithdraw(uint256)": {
  549. "params": {
  550. "_pid": "The pid specifies the pool"
  551. }
  552. },
  553. "owner()": {
  554. "details": "Returns the address of the current owner."
  555. },
  556. "renounceOwnership()": {
  557. "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
  558. },
  559. "transferOwnership(address)": {
  560. "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
  561. }
  562. },
  563. "version": 1
  564. },
  565. "userdoc": {
  566. "kind": "user",
  567. "methods": {
  568. "add(uint256,address)": {
  569. "notice": "handles adding a new LP token (Can only be called by the owner)"
  570. },
  571. "emergencyWithdraw(uint256)": {
  572. "notice": "Withdraw without caring about rewards."
  573. }
  574. },
  575. "version": 1
  576. },
  577. "storageLayout": {
  578. "storage": [
  579. {
  580. "astId": 7,
  581. "contract": "contracts/LPStaking.sol:LPStaking",
  582. "label": "_owner",
  583. "offset": 0,
  584. "slot": "0",
  585. "type": "t_address"
  586. },
  587. {
  588. "astId": 3360,
  589. "contract": "contracts/LPStaking.sol:LPStaking",
  590. "label": "mirrorgate",
  591. "offset": 0,
  592. "slot": "1",
  593. "type": "t_contract(MirrorgateToken)5017"
  594. },
  595. {
  596. "astId": 3362,
  597. "contract": "contracts/LPStaking.sol:LPStaking",
  598. "label": "bonusEndBlock",
  599. "offset": 0,
  600. "slot": "2",
  601. "type": "t_uint256"
  602. },
  603. {
  604. "astId": 3364,
  605. "contract": "contracts/LPStaking.sol:LPStaking",
  606. "label": "mirrorgatePerBlock",
  607. "offset": 0,
  608. "slot": "3",
  609. "type": "t_uint256"
  610. },
  611. {
  612. "astId": 3371,
  613. "contract": "contracts/LPStaking.sol:LPStaking",
  614. "label": "addedLPTokens",
  615. "offset": 0,
  616. "slot": "4",
  617. "type": "t_mapping(t_address,t_bool)"
  618. },
  619. {
  620. "astId": 3375,
  621. "contract": "contracts/LPStaking.sol:LPStaking",
  622. "label": "lpBalances",
  623. "offset": 0,
  624. "slot": "5",
  625. "type": "t_mapping(t_uint256,t_uint256)"
  626. },
  627. {
  628. "astId": 3378,
  629. "contract": "contracts/LPStaking.sol:LPStaking",
  630. "label": "poolInfo",
  631. "offset": 0,
  632. "slot": "6",
  633. "type": "t_array(t_struct(PoolInfo)3358_storage)dyn_storage"
  634. },
  635. {
  636. "astId": 3384,
  637. "contract": "contracts/LPStaking.sol:LPStaking",
  638. "label": "userInfo",
  639. "offset": 0,
  640. "slot": "7",
  641. "type": "t_mapping(t_uint256,t_mapping(t_address,t_struct(UserInfo)3349_storage))"
  642. },
  643. {
  644. "astId": 3387,
  645. "contract": "contracts/LPStaking.sol:LPStaking",
  646. "label": "totalAllocPoint",
  647. "offset": 0,
  648. "slot": "8",
  649. "type": "t_uint256"
  650. },
  651. {
  652. "astId": 3389,
  653. "contract": "contracts/LPStaking.sol:LPStaking",
  654. "label": "startBlock",
  655. "offset": 0,
  656. "slot": "9",
  657. "type": "t_uint256"
  658. }
  659. ],
  660. "types": {
  661. "t_address": {
  662. "encoding": "inplace",
  663. "label": "address",
  664. "numberOfBytes": "20"
  665. },
  666. "t_array(t_struct(PoolInfo)3358_storage)dyn_storage": {
  667. "base": "t_struct(PoolInfo)3358_storage",
  668. "encoding": "dynamic_array",
  669. "label": "struct LPStaking.PoolInfo[]",
  670. "numberOfBytes": "32"
  671. },
  672. "t_bool": {
  673. "encoding": "inplace",
  674. "label": "bool",
  675. "numberOfBytes": "1"
  676. },
  677. "t_contract(IERC20)1045": {
  678. "encoding": "inplace",
  679. "label": "contract IERC20",
  680. "numberOfBytes": "20"
  681. },
  682. "t_contract(MirrorgateToken)5017": {
  683. "encoding": "inplace",
  684. "label": "contract MirrorgateToken",
  685. "numberOfBytes": "20"
  686. },
  687. "t_mapping(t_address,t_bool)": {
  688. "encoding": "mapping",
  689. "key": "t_address",
  690. "label": "mapping(address => bool)",
  691. "numberOfBytes": "32",
  692. "value": "t_bool"
  693. },
  694. "t_mapping(t_address,t_struct(UserInfo)3349_storage)": {
  695. "encoding": "mapping",
  696. "key": "t_address",
  697. "label": "mapping(address => struct LPStaking.UserInfo)",
  698. "numberOfBytes": "32",
  699. "value": "t_struct(UserInfo)3349_storage"
  700. },
  701. "t_mapping(t_uint256,t_mapping(t_address,t_struct(UserInfo)3349_storage))": {
  702. "encoding": "mapping",
  703. "key": "t_uint256",
  704. "label": "mapping(uint256 => mapping(address => struct LPStaking.UserInfo))",
  705. "numberOfBytes": "32",
  706. "value": "t_mapping(t_address,t_struct(UserInfo)3349_storage)"
  707. },
  708. "t_mapping(t_uint256,t_uint256)": {
  709. "encoding": "mapping",
  710. "key": "t_uint256",
  711. "label": "mapping(uint256 => uint256)",
  712. "numberOfBytes": "32",
  713. "value": "t_uint256"
  714. },
  715. "t_struct(PoolInfo)3358_storage": {
  716. "encoding": "inplace",
  717. "label": "struct LPStaking.PoolInfo",
  718. "members": [
  719. {
  720. "astId": 3351,
  721. "contract": "contracts/LPStaking.sol:LPStaking",
  722. "label": "lpToken",
  723. "offset": 0,
  724. "slot": "0",
  725. "type": "t_contract(IERC20)1045"
  726. },
  727. {
  728. "astId": 3353,
  729. "contract": "contracts/LPStaking.sol:LPStaking",
  730. "label": "allocPoint",
  731. "offset": 0,
  732. "slot": "1",
  733. "type": "t_uint256"
  734. },
  735. {
  736. "astId": 3355,
  737. "contract": "contracts/LPStaking.sol:LPStaking",
  738. "label": "lastRewardBlock",
  739. "offset": 0,
  740. "slot": "2",
  741. "type": "t_uint256"
  742. },
  743. {
  744. "astId": 3357,
  745. "contract": "contracts/LPStaking.sol:LPStaking",
  746. "label": "accMirrorgatePerShare",
  747. "offset": 0,
  748. "slot": "3",
  749. "type": "t_uint256"
  750. }
  751. ],
  752. "numberOfBytes": "128"
  753. },
  754. "t_struct(UserInfo)3349_storage": {
  755. "encoding": "inplace",
  756. "label": "struct LPStaking.UserInfo",
  757. "members": [
  758. {
  759. "astId": 3346,
  760. "contract": "contracts/LPStaking.sol:LPStaking",
  761. "label": "amount",
  762. "offset": 0,
  763. "slot": "0",
  764. "type": "t_uint256"
  765. },
  766. {
  767. "astId": 3348,
  768. "contract": "contracts/LPStaking.sol:LPStaking",
  769. "label": "rewardDebt",
  770. "offset": 0,
  771. "slot": "1",
  772. "type": "t_uint256"
  773. }
  774. ],
  775. "numberOfBytes": "64"
  776. },
  777. "t_uint256": {
  778. "encoding": "inplace",
  779. "label": "uint256",
  780. "numberOfBytes": "32"
  781. }
  782. }
  783. }
  784. }