Giter Site home page Giter Site logo

Comments (2)

MichaelKim20 avatar MichaelKim20 commented on August 26, 2024

다음은 투표비용을 계산하기 위해 사용된 공식입니다.

아래 그림은 컨트랙트의 각 메소드 별 가스 사용량을 측정한 것입니다.

스크린샷 2022-07-19 오전 10 37 31

트랜잭션 수수료 = 가스사용량 * 가스가격

가스의 가격은 비즈넷은 현재는 1000000000E-18 입니다.

그러나 트랜잭션 전송시에는 그보다 높은 1500000000E-18를 사용합니다.

따라서 투표용지를 제출할 때 발생하는 트랜잭션 수수료 = 129,372 * 1500000000E-18 = 0.000194058 BOA
따라서 검증자들에게 0.0002 BOA 씩 전송하면 되겠습니다.

from commons-budget-contract.

linked0 avatar linked0 commented on August 26, 2024

검증자들에게 평가비용까지 계산해서 제공해야하고, 평가시작전에 비용을 전달하도록 기능이 변경되었으므로 재오픈함.

from commons-budget-contract.

Related Issues (15)

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.