axiom-crypto / axiom-ideas

0 stars 0 forks source link

Weighted votes based on account activities #3

Open zxw344 opened 1 year ago

zxw344 commented 1 year ago

What is it?

A smart contract that assigns more weight to votes cast by accounts that have interacted with certain protocols before.

How does it work?

When a user calls the voting smart contract to cast a vote, Axiom’s contracts are subsequently called to check the voter’s past transactions. A simple example is assigning any voters who have voted once before 2x weight to their current vote. The weight can be assigned onchain after Axiom returns the transaction result.

Why use Axiom?

It was previously impossible to achieve weighted voting seamlessly onchain. To do this, developers had to set up a front end to collect user addresses, check their transaction history against their own nodes, then return a signed message for the transactions to continue to be processed onchain. Axiom drastically simplifies this workflow and upgrades it to protocol level so users can access it anywhere (instead of being limited to the front end).