Nxt Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client 1.11.2 - Announcement for Ardor (Nxt 2.0) is here. Ardor Tokens have been released!

Pages: [1]

Author Topic: [PLUGIN] Dividend payout plugin (via normal transactions) for NRS  (Read 1605 times)

testdruif

  • Full Member
  • ***
  • Offline Offline
  • Posts: 224
    • View Profile
  • Karma: +71/-1

NXT/NRS Plugin: Dividend payout Plugin for the NXT NRS client that allows you to send dividends via normal transactions and exclude certain accounts (issuer, escrow)

The calculations round down dividends per invididual user. This is done to ensure that with big payments the total amount of dividends sent is not larger than the actual amount of dividend to distribute.

Layout is partly the same as the supernet client but most of the code behind it is new to fully support the NRS client!

The message attached to the transaction is prunable to keep the cost down

This plugin it has been reviewed by nxtplugins on "correctness" of the code and multiple tests have been performed on the nxt testnet. Please review the calculations and output to minimize the risk of errors. I will in no way be held accountable for any issues.

You can get it here (for free but donations are always welcome): http://nxtplugins.com/index.php?details&id=10

Version 2.5.11
  • Instead of using the initial amount of assets the plugin now used the available amount

Version 2.5.10
  • Fixed issue where buttons stay disabled if you don't fill in a passphrase when sending
  • Centralized error handling on sending

Version 2.5.9
  • Added UTC + 1 in help of timestamp field

Version 2.5.8
  • Changed repo and support links

Version 2.5.7
  • Changed and reordered code so certain buttons are disabled when sending out dividend to avoid double clicking

Version 2.5.6
  • Complete overhaul of the error checking code
  • Added 'dry run' button which shows the api requests so you can verify the code and calculations regarding NQT
  • Added Message field to change the default message
  • Added the ability to send a message to asset holders (by setting the amount of dividend to 0)

Version 2.5.5
  • recoded dividend sending so that it works on openapi servers

Version 2.5.4
  • Added dividend per share to the output message

Version 2.5.3
  • Fixed bug with asset dividend payout decimals

Version 2.5.2
  • changed asset accounts code so it asks 50 records at a time to get around the 100 api call limit

Version 2.5.1
  • Various bug fixes and extra error controles

Version 2.5.0
  • Added asset ownership timestamp

Version 2.0.0
  • Added asset as dividend payout

Version 1.0.0
  • Initial coding

« Last Edit: May 02, 2016, 07:04:30 am by testdruif »
**Necessity is the mother of invention**
NXT-NNGD-V8TN-3MZR-DWWBE
https://arguseyes.net

Sebastien256

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2667
  • ^LOOK UP^ = Nxt community!
    • View Profile
  • Karma: +162/-24

This is Awesome! Great work!

+1
Please drop your ideas concerning Nxt and/or NRS in this topic -> List of feature request for Nxt and/or NRS (with the full list in OP).

KarlKarlsson

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 779
    • View Profile
  • Karma: +79/-24
NXTinfo.org - Your toolbox to become an Asset Expert! | Twitter | Facebook | ZapChain

testdruif

  • Full Member
  • ***
  • Offline Offline
  • Posts: 224
    • View Profile
  • Karma: +71/-1

Version 2.5.11

  • Instead of using the initial amount of assets the plugin now used the available amount
  • Updated manifest to resemble compatibility with 1.8 branch
**Necessity is the mother of invention**
NXT-NNGD-V8TN-3MZR-DWWBE
https://arguseyes.net

alpho2k

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 40
    • View Profile
  • Karma: +14/-1

I've use this plugin for the first time today and it has work very well.

Thank you,
BitalizeTeam Member

Blitzcoin The Viral Exchange

nxtfunlotto

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 26
    • View Profile
  • Karma: +0/-0

I wanted to use the plugin, but it DOES NOT work with NRS1.10.2

(why?)

testdruif

  • Full Member
  • ***
  • Offline Offline
  • Posts: 224
    • View Profile
  • Karma: +71/-1

I wanted to use the plugin, but it DOES NOT work with NRS1.10.2

(why?)

Hey nxtfunlotto,

You'll probably need to adjust the nrs version in the manifest.json file.

The version defined in this file, locks plugins from working on newer versions.
**Necessity is the mother of invention**
NXT-NNGD-V8TN-3MZR-DWWBE
https://arguseyes.net

nxtfunlotto

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 26
    • View Profile
  • Karma: +0/-0

hi,

I tried it, but the status is INACTIVE.
(I use the latest plugin version)

testdruif

  • Full Member
  • ***
  • Offline Offline
  • Posts: 224
    • View Profile
  • Karma: +71/-1

hi,

I tried it, but the status is INACTIVE.
(I use the latest plugin version)

Did you also enable plugins in the NRS client?

I just downloaded the plugin, adjusted the version in the manifest.json to the version of NRS i'm running and made sure plugins are enabled in the NRS client.
After doing these steps the plugin loads.
« Last Edit: September 09, 2016, 09:43:05 am by testdruif »
**Necessity is the mother of invention**
NXT-NNGD-V8TN-3MZR-DWWBE
https://arguseyes.net

nxtfunlotto

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 26
    • View Profile
  • Karma: +0/-0

Thank you for your support.
My problem: I had the plugin not allowed in NRS (Settings / Allow plugins)
 ;)
Pages: [1]