Skip to content

Commit

Permalink
Merge branch 'beta' into docs/invest-in-tiered-sto-procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
shuffledex committed Jan 17, 2020
2 parents d801f80 + 063c6ee commit b949447
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polymathnetwork/sdk",
"version": "2.0.1-beta.105",
"version": "2.0.1-beta.106",
"description": "A Javascript SDK for interacting with the Polymath network for the browser and Node.js",
"bugs": {
"url": "https://github.com/PolymathNetwork/polymath-sdk/issues"
Expand Down
13 changes: 13 additions & 0 deletions src/procedures/WithdrawTaxes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import { PolymathError } from '../PolymathError';
import { DividendDistribution, SecurityToken } from '../entities';
import { Factories } from '../Context';

/**
* @hidden
*/
export const createWithdrawTaxesResolver = (
dividendIndex: number,
factories: Factories,
Expand All @@ -18,9 +21,19 @@ export const createWithdrawTaxesResolver = (
);
};

/**
* Procedure that allows an issuer to withdraw withheld tax from a Dividend Distribution
*/
export class WithdrawTaxes extends Procedure<WithdrawTaxesProcedureArgs> {
public type = ProcedureType.WithdrawTaxes;

/**
* Withdraw Tax Withholdings
*
* Note that this procedure will fail if:
* - The security token doesn't exist
* - The Dividends Feature hasn't been enabled
*/
public async prepareTransactions() {
const { symbol, dividendIndex } = this.args;
const { contractWrappers, factories } = this.context;
Expand Down

0 comments on commit b949447

Please sign in to comment.