The Future of DeFi: Token Plugins by Kirill Kuznetcov (1inch)

Nethermind Summit Istanbul 2023 · 7 Dec 2023 · 7:07

Kirill Kuznetcov of 1inch introduces token plugins, an ERC-20 based extension that lets holders connect any token, including LP tokens, to permissionless plugin contracts. The plugins cannot move or burn the token, so participation stays low risk. He describes the farming plugin, which lets one LP token earn from several farms at once, and the onchain delegation plugin used for 1inch staking and Fusion resolvers.

Speakers

Topics

From Nethermind Summit Istanbul 2023, hosted by Nethermind.

Transcript

thank you um hello everyone uh my name is Kil I'm the lead be and engineer in 1 in and uh recently we came up with an idea uh to build the new dii primitive uh and we hope that this new standard will extend the current and future tokens functionality and utility so uh basically uh uh token plugins is your C20 based extension that allows holders of any token LP token and everything that is tokenized to plug into some

smart contract and extend the logic of the earc based tokens it's easier to uh create such plugins and connect your token to the standard so you just need to inherit your token from your C20 uh plugins uh and if your token is already existed then you just need to create a wrapper over it and that's it after that uh arbitrary person um deploys permissionless uh permissionless a plugin uh as a smart contract and any wallet like holder can connect this plugin to his own token and this plugin

uh will trade the balances update and um uh the participation Is the participation is uh risk free so if you connect the plugin to your token like uh the token that you own um this plugin doesn't have any access to the transfer approve mean or burn functionality um that means that storage can cannot be overwrite by uh this plugin and it's um risk-free also uh plugin plugins development is uh risk free uh is permissionless so anyone can create

their own smart contract and um uh promote this smart contract and ask everybody to participate in it and moreover you can use not only one plugin for your account you can connect multiple plugins the only one limitation is number of plugins uh so the plugin plugin looks like this this just the function that records the balances there are three arguments from two amount and this addresses from and two can be zero addresses so if you trigger this function when you transfer your token

then and uh another person is not connected to the plugin then you will receive uh zero address and you can um write the logic according to your thoughts about the those who not participating in this plug-in and uh at the current moment we developed two plugins the first one is farming plugin so right now to participate in uh liquidity mining you need to provide your LP token to an external smart contract you need to trust this contract you need to check Audits and it's a bit complicated for

the normal users and is not very safe uh with the farming plugin uh you as the user can just um connect the uh farming plugin to your token to your LP token and uh you will automatically put the participate in the farming and uh the guy who created an LP token the protocol they should extend their C20 plugins functionality moreover uh with the current farming you can participate only in one farming because you need to lock your LP token in the farming contract with the token plugins you can connect like 1 2 3 four even five uh different f

in contracts with the same LP token and uh get in incentivization from different sources uh the second one is onchain delegation plugin uh this plugin allows to trade the delegated balance it's useful for uh government stuff it's useful for voting when you want to um approve your balance for another person that can use use these votes to vote uh from your name and uh this system right now working on production with the 1 in staking about uh almost one year ago uh

we released int Centric orders uh called 1in fusion um and uh this uh this scheme has their uh resolvers uh there resolvers is a program which executes orders on chain and to uh be stable the system should have not more than 10 resolvers and this can be achieved uh through delegating port on the on this scheme it's a power port so the holder of ST1 in connects power port and he can delegate his balance to the resolver in order for resolver to

keep in the top 10 and execute orders and at the same time resolvers should incentivize uh delegators uh for their action and they can uh deploy a connect a multi farming Port that will be automatically connected to the all um delegators who already delegated to the resolver and the system like not so complex uh and working and we hope that on upcoming etherium Istanbul hackaton uh hackers will create uh build new token plugins and even more interesting than farming

or delegation so uh here is the QR code yes it's canable and there is only 100 lines of code for the token plugins and um you can check it and try to build something thank you [Applause] so maybe any questions

Related talks