{"id":30029350,"url":"https://github.com/volumefi/palomadex-incentives","last_synced_at":"2025-08-06T17:03:57.809Z","repository":{"id":303482354,"uuid":"996126000","full_name":"VolumeFi/palomadex-incentives","owner":"VolumeFi","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-07T21:12:34.000Z","size":489,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-07T23:19:09.834Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VolumeFi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-04T13:47:02.000Z","updated_at":"2025-07-07T21:12:33.000Z","dependencies_parsed_at":"2025-07-07T23:19:57.726Z","dependency_job_id":"9b4ac0e6-d014-4037-a2b9-dd6a63166160","html_url":"https://github.com/VolumeFi/palomadex-incentives","commit_stats":null,"previous_names":["volumefi/palomadex-incentives"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VolumeFi/palomadex-incentives","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Fpalomadex-incentives","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Fpalomadex-incentives/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Fpalomadex-incentives/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Fpalomadex-incentives/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VolumeFi","download_url":"https://codeload.github.com/VolumeFi/palomadex-incentives/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Fpalomadex-incentives/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269118381,"owners_count":24362994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-06T02:00:09.910Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-06T17:02:56.610Z","updated_at":"2025-08-06T17:03:57.791Z","avatar_url":"https://github.com/VolumeFi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Palomadex VePADEX and Incentives contracts\n\n# Palomadex VePADEX\n\nThe Voting Escrow contract for PADEX coin.\n\n---\n\n## InstantiateMsg\n\nInitializes the contract with the denom of the PADEX token.\n\n```json\n{\n  \"lock_denom\": \"factory/paloma...\",\n}\n```\n\n### `receive`\n\nCW20 receive msg.\n\n```json\n{\n  \"receive\": {\n    \"sender\": \"paloma...\",\n    \"amount\": \"123\",\n    \"msg\": \"\u003cbase64_encoded_json_string\u003e\"\n  }\n}\n```\n\n### `create_lock`\n\n\nLock PADEX and get VePADEX with end lock timestamp.\n```json\n{\n    \"create_lock\": {\n        \"end_lock_time\": 10000\n    }\n}\n```\n\n\n### `increase_lock_amount`\n\nLock more PADEX and get VePADEX.\n```json\n{\n    \"increase_lock_amount\": {\n\n    }\n}\n```\n\n### `withdraw`\n\nWithdraw locked PADEX\n\n```json\n{\n  \"withdraw\": {\n  }\n}\n```\n\n## QueryMsg\n\nAll query messages are described below. A custom struct is defined for each query response.\n\n### `config`\n\nReturns the vesting token contract address (the PADEX token address).\n\n```json\n{\n  \"config\": {}\n}\n```\n\n\n# Palomadex Incentives\n\nThe Palomadex Incentives contract allocates token rewards for various Paloma tokens or LP tokens and distributes them pro-rata to LP stakers.\nWe support both cw20 and native Paloma tokens or LP tokens.\nOne more improvement is that PADEX emissions are counted by seconds instead of blocks which makes more sense since Palomadex is multichain protocol.\n\n\n## Endpoints Description\nContract supports following execute endpoints:\n- `setup_pools` - is meant to be called either by owner or generator controller. Reset previous active pools and set new alloc points.\n- `deposit` - stake Paloma tokens or LP tokens in the generator in order to receive rewards. Rewards are updated and withdrawn automatically. All pools registered the Palomadex factory are stakable. However, it doesn't mean that the pool is incentivized.\n- `withdraw` - withdraw part or all Paloma tokens or LP tokens from the generator. Rewards are updated and withdrawn automatically.\n- `claim_rewards` - update and withdraw all rewards associated with the Paloma tokens or LP tokens. This endpoint accepts multiple Paloma tokens or LP tokens.\n- `set_tokens_per_second` - set new number of PADEX emissions per second. Only owner can call this endpoint.\n- `incentivize` - add new reward schedule to a specific pool. All overlapped schedules are thoroughly considered and summed up. This is permissonless endpoint. However, it requires to pay incentivization fee in case this reward is new.\n- `remove_reward_from_pool` - completely remove reward from pool. However, all accrued rewards will be considered at current point. This endpoint can be called only by owner. One must supply remaining rewards receiver address.\n- `update_config` - is meant to update general contract settings. Only owner can call this endpoint.\n- `update_blocked_tokens_list` - update list of tokens that are not allowed to be incentivized with PADEX as well as can't be used as external rewards. Only owner can call this endpoint.\n- `deactivate_pool` - only factory can call this endpoint. Called from deregistration context in factory.\n- `propose_new_owner`, `drop_ownership_proposal`, `claim_ownership` - endpoints to change ownership. Only current owner can propose new owner or drop proposal and only proposed owner can claim ownership.\n\n\n### Deposit\nAnyone can deposit either through direct `deposit` call with native Paloma tokens or LP tokens supplied or via cw20 send hook. \nContract checks if LP token corresponds to a pair registered in factory. Any LP token is stakable by default although it doesn't mean that it is incentivized in generator.\n\n\n### Withdraw\nPartially or fully withdraw Paloma tokens or LP tokens from the generator. Rewards are updated and withdrawn automatically.\n\n\n### Incentivize\nAdd new reward schedule to a specific pool. All overlapped schedules are thoroughly considered and summed up. \nThis is permissonless endpoint. However, it requires to pay incentivization fee in case this reward is new.\nReward schedules are counted by periods where period is one week. Each period starts on Monday 00:00 UTC and ends on Sunday 23:59 UTC.\nNew reward schedule always starts right away and lasts **till the next Monday + X weeks**, where X - number of weeks specified in the schedule.\n\n\n### Update pool rewards\nThis is internal logic which is launched whenever Paloma tokens or LP tokens amount changes, new reward schedule is added or rewards are claimed.\nEach time _update_rewards_ is called, accrued rewards / total LP staked value is added to the current reward index.\n_rps_ - rewards per second","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolumefi%2Fpalomadex-incentives","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolumefi%2Fpalomadex-incentives","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolumefi%2Fpalomadex-incentives/lists"}