GithubHelp home page GithubHelp logo

Comments (4)

clayop avatar clayop commented on July 18, 2024 1

Definately, especially for real-world use cases. One of the goal of charging fee is to prevent spam from anonymous attackers. However, if we know identity, or at least we have a control on access permission, we can kick the attackers out (even legally) or block suspicious accounts.

from bitshares-core.

abitmore avatar abitmore commented on July 18, 2024 1

Here is another approach. With a customized UI, the end user can feel no fee is involved, even no need to create a special fee asset, nor need to maintain the fee pool.

Knowledge points:

  • fees are paid after an operation got executed;
  • it's able to pull funds from another account.

Preparation:

  • initialize withdraw permissions for your user with withdraw_permission_create_operation

When a user requests a transfer, create a transaction which contains 2 operations:

  1. withdraw_permission_claim_operation: pull required fees (can be in BTS) from the account configured by asset owner, fees of this operation can be paid with a part of pulled funds,
  2. transfer_operation: the real transfer, pay fees with the rest of pulled funds.

Total fees required would be sum of the 2 operations.

UI/UX:

  • hide the fee field,
  • hide the withdraw_permission_claim_operation,
  • handle exceptions e.g. an user has exceeded her credits thus unable to pull funds (UI should already know that and why).

from bitshares-core.

nathanielhourt avatar nathanielhourt commented on July 18, 2024

This sounds like a useful feature. In my work at FMV, we encountered some scenarios where this would substantially simplify the blockchain app.

from bitshares-core.

abitmore avatar abitmore commented on July 18, 2024

This can be done in UI.

The business owner create another UIA, say, named XFEE, show it in UI as allowance or so, carefully maintain the core exchange rate, fee pool and white list, dynamically issue/send some amount of the UIA to users according to their reputation or whatever. Whenever a user transact, pay an amount of the UIA from the user's account, so equivalent CORE will be deducted from the fee pool.

from bitshares-core.

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.