Giter Site home page Giter Site logo

Off-chain signatures in UI about usm HOT 3 CLOSED

usmfum avatar usmfum commented on June 15, 2024
Off-chain signatures in UI

from usm.

Comments (3)

jacob-eliosoff avatar jacob-eliosoff commented on June 15, 2024 1

This is over my head but fewer clicks = good!

from usm.

alcueca avatar alcueca commented on June 15, 2024

We use off-chain signatures for ERC20Permit and for Delegable.

The way this could be implemented is by creating an onboard function in the frontend that collects the signatures to issue MAX permits for USM to receive/burn USM and FUM, and submits them in a single transaction executed by Proxy. The same process should collect the signatures to execute an addDelegate of Proxy by the user.

Be aware that right now an addDelegate call or signature is required for each one of the four main USM functions. That's bad UX and I'm planning to fix it by coding a batchDelegateByPermit(address holder, address delegate, bytes4[] signature, uint expiry, uint8 v, bytes32 r, bytes32 s) function in Delegable.sol.

So the final process would be:

Click onboard:
 -> USM Permit Signature
 -> FUM Permit Signature
 -> Proxy Delegate Signature
 -> Submit Transaction

The UI can work with Ether by default. An option to use Weth if present could be added somewhere, which would involve a weth.approve(USM.address, MAX) transaction by the user enabling the feature.

from usm.

alexroan avatar alexroan commented on June 15, 2024

Thanks, @albertocuestacanada. We may have to sync up when this comes around.

This is dependent on #30 being resolved first.

from usm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.