# PIP-19: Extend Advanced Staking ## Summary: This proposal extends the “Advanced Staking” program for another four months, with stakes accepted till March 10, 2024 and rewards accrued at an APR of 15% (same as prior period)  with the locking period of 60 days. The new staking cycle will be started with the parameters stated in the “Terms for smart contracts” section. ## Background: The initial “Advanced Staking” program was launched via [PIP-9](https://snapshot.org/#/pantherprotocol.eth/proposal/0x01942f584fe0c27aeef420207135be5ede279998da0a7839f22e2178b2d335ba), [PIP-10](https://snapshot.org/#/pantherprotocol.eth/proposal/0x0c6f3fd9db866f99d7d0b343687b890cd3240495170f539efcc31f2dc216ebd5), and prolonged via [PIP-13](https://snapshot.org/#/pantherprotocol.eth/proposal/0x0825de3b9289d3e04e8f9f3607d1145923f482104fecabc9d02634b3f7d6f521) and [PIP-18](https://snapshot.org/#/pantherprotocol.eth/proposal/0xbed8212b3a53c7c82d1fe252642cb4eaaf3f09c65031492af4b8e27ec538e3fc). The extended Advanced Staking program was valid till October 28, 2023 and the corresponding rewards were calculated for the same period. The community proposes to launch the new cycle (“program”) given the completion of the previous program (activated via [PIP-18](https://snapshot.org/#/pantherprotocol.eth/proposal/0xbed8212b3a53c7c82d1fe252642cb4eaaf3f09c65031492af4b8e27ec538e3fc)). As discussed on [Panther’s Discourse forum](https://forum.pantherprotocol.io/t/extending-advanced-staking/327/10), the community recommends running a new cycle of the “Advanced Staking” program (AS4), with the parameters stated below in the “Terms for smart contracts” section. The remaining $ZKP tokens originally allocated as staking rewards according to proposal [PIP-9](https://snapshot.org/#/pantherprotocol.eth/proposal/0x01942f584fe0c27aeef420207135be5ede279998da0a7839f22e2178b2d335ba) shall be used to source rewards under the new program. This proposal (1) authorizes updates to [the current UI](https://github.com/pantherprotocol/panther-core/releases/tag/v0.5.4) which introduce the new staking terms as described below, (2) autorizes and triggers the execution (via [Panther’s space](https://snapshot.org/#/pantherprotocol.eth) on [Snapshot.org](http://snapshot.org/) and the Reality.eth oracle) of the attached blockchain transactions listed below under Annex, deploying and configuring Panther’s smart contracts to launch Advance Staking - 4 (AS4). ## Terms for smart contracts: It is proposed to follow the below parameters for extending the “Advanced Staking” program: | | | | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Parameter** | **Description** | | First day stakes are accepted | As soon as the PIP is passed and executed. | | Last day stakes are accepted | March 10, 2024, 12:00 am UTC, or earlier if “Amount of $ZKP allocated for rewards to all stakers” below has been already depleted, or earlier if Panther’s v1 is launched beforehand. | | Amount of $ZKP allocated for rewards to all stakers | (1) The remaining part of rewards, which were allocated according to PIP-9 and used during three cycles of the Advanced Staking program. (2) The additional $ZKP 2M, which are the tokens recovered by the [Polygon bug fix PIP](https://snapshot.org/#/pantherprotocol.eth/proposal/0x5b854f288f407562265f6fd701e8e50564e4e936d36fb3784664195f763434a0). | | Number of days the staked $ZKP remains locked after stake creation | 60 days | | Reward formula, where: Reward - reward for a stake ($zZKP) Amount - amount staked ($ZKP) APR - Annual Percentage Rate (%) Period - rewarded period (days) | Reward = Amount\*_APR\*_Period / 365, APR - 15%, Period - 60 days | | Minimum $ZKP amount per stake | 1000 | | Time since for a staker to withdraw rewards from the MASP (but forfeiting the right to accumulate PRPs) | Immediately after the stake is created. | ## Community Deployment Rewards: Users who execute blockchain transactions listed in the Annex shall be rewarded as follows: 1. 2,000 $ZKP shall be rewarded to the first deployer of the updated UI to IPFS. 2. 3,000 $ZKP shall be rewarded to the user(s) who execute the blockchain transactions to deploy and configure smart contracts on the Ethereum Mainnet and Polygon network. There are 3 transactions to execute, each one will award a user 1,000 $ZKP reward. 3. Users who execute the mentioned above blockchain transactions shall be given extra rewards as compensation for the gas costs incurred by these users on the Ethereum Mainnet. To clarify, this only applies to the Reality.eth transactions directly associated with this DAO proposal, which are described in the Annex and listed on the corresponding page on [Snapshot.org](http://snapshot.org/). This does not promise any compensation for normal staking/unstaking transactions, or other interactions with the smart contracts. ## Proposed Actions: 1. Approve all parameters included in the sections “Terms for smart contracts” and “Community Deployment Rewards”. 2. Authorize UI code updates to implement new terms, 3. Authorize and execute on the Ethereum Mainnet and Polygon network the deployment and configuration transactions described in the Annex, to achieve the terms for the AS4 program to be those outlined in the section “Terms for smart contracts”, including the adding funds to the rewards pool.  4. Send the deployment rewards according to the points 1, 2 and 3 of the ''Community Deployment Rewards'' section of [PIP-18](https://snapshot.org/#/pantherprotocol.eth/proposal/0xbed8212b3a53c7c82d1fe252642cb4eaaf3f09c65031492af4b8e27ec538e3fc), namely: 1. The distribution of 2000 $ZKP towards the following address for deploying the updated front-end (v0.5.4) onto IPFS:0xE1B583De9cB37196031b771686734a31ec365768 2. The distribution of 6000 $ZKP to the following address who executed the blockchain transactions to deploy and configure the smart contracts on the Ethereum Mainnet and Polygon network:0xE1B583De9cB37196031b771686734a31ec365768 3. The distribution of $146 USD in $ZKP tokens - which is $ZKP 7685 at the rate $ZKP=0.019 USD - as a gas fee compensation for the community member who executed point 3 of the Proposed Actions section, PIP-18: :0xE1B583De9cB37196031b771686734a31ec365768 5. Request the Panther Foundation to configure the pantherprotocol.eth namespace so that the URL will point to the updated UI deployed on IPFS. ## Participation: Please vote to accept or reject the proposed actions detailed above. As per the existing DAO governance structure, as the staking smart contracts are not currently issuing any rewards, you need to hold $ZKP, staked or not, on the Ethereum Mainnet or Polygon to participate in voting. Voting power is calculated by [Snapshot.org](http://snapshot.org/) taking a snapshot of the number of ZKP tokens per holder at the block within which the proposal was created. ## Full proposal details: The full details of this proposal are visible in a more human-readable form at: [https://docs.pantherprotocol.io/docs/dao-proposals/proposal-19-extend-advanced-staking](https://docs.pantherprotocol.io/docs/dao-proposals/proposal-19-extend-advanced-staking) ## Annex: This proposal triggers the execution of the following blockchain transactions. These transactions are already encoded during the submission of the proposal to [Snapshot.org](http://snapshot.org/), and can be independently verified via the [snapshot.org](http://snapshot.org/) web interface. The complete list of transactions can be found under the following URL: [https://docs.pantherprotocol.io/docs/dao-proposals/proposal-19-extend-advanced-staking/technical-details](https://docs.pantherprotocol.io/docs/dao-proposals/proposal-19-extend-advanced-staking/technical-details) ### Batch 1 transaction 1: Deploy the AdvancedStakeV4ActionMsgTranslator smart contract on the Polygon network by invoking the DeterministicDeploymentProxy on the Polygon Network. The transaction will initiate a call to FxRoot on the Ethereum mainnet, which will bridge the contract bytecode to the Polygon network through the MaticBridgeModule. ### Batch 2 transaction 1: Deploy the AdvancedStakeV4ActionMsgTranslator smart contract on the Ethereum mainnet using the DeterministicDeploymentProxy. ### Batch 2 transaction 2…5: Configure the Staking and RewardMaster smart contracts on the Ethereum mainnet to work with the newly deployed AdvancedStakeV4ActionMsgTranslator. ### Batch 2 transaction 6: Re-enable Advanced Stakes on the Ethereum mainnet from Friday, November  10, 2023, at 12:00:00 PM UTC until Sunday, March 10, 2024 at 12:00:00 AM UTC, with a lock period of 60 days. ### Batch 3 transactions 1…4: Configure the Staking and RewardMaster contracts on the Polygon network to interact with the newly deployed AdvancedStakeV4ActionMsgTranslator. Calls to FxRoot on the Ethereum network will trigger the corresponding calls on the Polygon network. This is done through the bridging mechanism provided by the MaticBridgeModule. ### Batch 3 transaction 5: Re-enable advanced stakes on Polygon starting from Friday, November  10, 2023, at 12:00:00 PM UTC until Sunday, March 10, 2024 at 12:00:00 AM UTC, with a lock period of 60 days. The transaction will call FxRoot on the Ethereum mainnet to bridge the configuration data to the Polygon network through MaticBridgeModule. ### Batch 3 transaction 6: Update the advanced staking reward parameters by changing the end time to Friday, May 09, 2024 12:00:00 AM UTC. The transaction will invoke the call to FxRoot on the mainnet to facilitate the transfer of the configuration call across the Polygon bridge. ### Batch 4 transaction 1: Mint and release 15685 $ZKPs and transfer them to the community member who deployed and configured Contracts by executing the Pip 18 transactions and deployed Front end codes. ### Batch 5 transaction 1…3: Topping up the advanced stake v4 rewards by withdrawing 2m $ZKP from RewardTreasury on Polygon and transferring them to the AdvanceStakeRewardController. These 2M tokens are recovered by the Polygon bug fix PIP (). The transaction will call FxRoot on the Ethereum mainnet to bridge the transaction data to the Polygon network through MaticBridgeModule.