Skip to content

brevis-network/incentra-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Incentra Contracts

Contract Types

Same-chain reward submission and claim

Main contracts: CampaignXX.sol, examples:

Cross-chain reward submission and claim

To reduce gas cost of campaign on an expensive chain (e.g., Ethereum), submit zk attested rewards on another chain (e.g., Arbitrum), then bridge the merkle root of all rewards back to the campaign chain.

Concentrated Liquidity

  • CampaignCL: main contract, accept zk attested rewards and user claim, inherits Rewards which inherits TotalFee
  • Rewards: keep track of per user per token reward amount and claimed. also tracks each user's last attested epoch. indirect rewards(eg. ALM) has additional map of contract-user-epoch
  • TotalFee: epoch-fee map

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors