Content pfp
Content
@
0 reply
0 recast
0 reaction

Michael Gingras (lilfrog) pfp
Michael Gingras (lilfrog)
@frog
https://github.com/mcgingras/noun-swapper/blob/main/src/NounSwapper.sol Minimal POC for a contract that would custody all of the t-nouns and let anyone swap for a fee without having to create a proposal. Looking for feedback on contract and also if this is something worth seriously pursuing.
3 replies
0 recast
5 reactions

Michael Gingras (lilfrog) pfp
Michael Gingras (lilfrog)
@frog
steps 1. nouns treasury is owner of the contract 2. nouns sends as many / all of the t-nouns as they'd like to this contract 3. anyone can swap with `swapNoun` 4. via proposal, treasury (owner) can revoke nouns either to some address (if someone creates a prop and wants a noun) or back to treasury 5. anyone can call `cashout` which sends fees back to treasury
2 replies
0 recast
0 reaction

david pfp
david
@davidbr
Feedback on contract: moving treasury nouns will increase adjustedTotalSupply, which is wrong. Another way to implement this is to keep the nouns in the treasury and give the side contract approval to transfer nouns from the treasury.
1 reply
0 recast
2 reactions

Michael Gingras (lilfrog) pfp
Michael Gingras (lilfrog)
@frog
Yea, nice callout. I was talking to @coleperkins and @spencerperkins.eth and they suggested the same. Much more elegant
0 reply
0 recast
2 reactions