Skip to content

npc-ers/npc-staker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🥩 Steak

🏕️ NPC Orthodoxy Camp

🥩 Steak your NPC-er for re-education and earn worthless $THING CBDCs

Welcome to Orthodoxy Camp! Send your NPC to camp, earn $THING. Just your usual steaking, right?

Problem is, NPC allegiances are fickle. NPCs can't stay focused on re-education when they're too busy getting outraged by the most recent post they saw on social media. We needed to build a liquid staking mechanism for today's attention span.

The Current Thing

The Current Thing™ changes very rapidly. Our DAO votes on this frequently and writes this on-chain through the $THING token.

Elon Musk and SBF previously the Current Thing

Whenever a new Current Thing is announced, our staker assigns a pseudorandom multiplier to each NPC. Most are very low (1x), but some may be high as 10x. Here's an example distribution for a collection in one epoch:

NPC-ers distribution

Due to the fact the NPC multiplier is deterministic by epoch, it’s possible to collect NPCs which will have a high multiplier to collect more $THING. This means some NPCs with more common traits may nonetheless see utility for stakers.

NPC-ers multipliers by epoch

One final note for whales — you get an additional multiplier based on the square root of the number of NPCs staked, inspired by Paradigm's Goo

Stake one NPC, and the NPC gets the exact multiplier stated on the tin. Stake 4, and these are doubled. Stake 9, the multipliers are tripled. Not bad…

Bulk Bonus

ESG Compatibility

Knowing that NFTs still kill trees, because NPCs don’t understand the Merge, we needed a friendly solution so as not to offend their performative gestures towards environmentalism.

For starters, all these functions have been hyper-gas optimized to ensure they run efficiently.

Just in case this is too wealthy for you liberal arts major NPCs, we also came up with the ESG-NPC — an ERC-20 wrapper for an NPC which uses way less gas.

Any NPC can be “wrapped” as an ESG-NPC, which carries a one time wrapping cost, but then can be transferred and staked in bulk. You may unwrap at any time to receive an NFT back, but the unwrapping works on a LIFO system so you may not get your original NPC back. However, since all NPCs are basically interchangeable, does this matter?

Wait, how do you determine a multiplier for wrapped NPCs? Each new epoch of “Current Thing,” we average a handful of NPC multipliers and apply this to all wrapped NPCs. If your NPC multiplier is below this amount, you may be able to obtain a higher multiplier by wrapping your NPC (with the knowledge that you may never see your NPC again).

esgNPC

The benefits of a wrapped NPC, in addition to the environmental gesture, are to promote greater conformity and mass formation psychosis. The ability to best blend into a crowd and dissolve ones opinions into the collective is truly the highest form of achievement.

Addresses

Setup Notes

  • Add WEB3_INFURA_PROJECT_ID to your env
  • Follow setup instructions for brownie

Tests

  • Run brownie test --network mainnet-fork

Troubleshooting

Unknown contract address and/or Brownie does not autofetch Contract sources`

  • Replace Contract("CANT_FIND") with Contract.from_explorer(
  • Run once to download all contracts
  • Will likely hit rate limiting error
  • Revert changes using from_explorer
  • Profit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors