Crypto Like

Crypto Like

1641264686

What is Magnet DAO (MAG) | What is MAG token

In this article, we'll discuss information about the Magnet DAO project and MAG token. What is Magnet DAO (MAG) | What is MAG token?

Magnet DAO is the evolution of the reserve currency protocol. The DAO uses its protocol controlled value to reward token holders with exceptional yields. At the same time, it uses its treasury reserves to invest in and incubate innovative projects.

Unlike first-generation reserve currency protocols, the goal of Magnet DAO isn’t just to grow its market cap and treasury from bonding. Instead, Magnet DAO uses 10% of bond profits to invest in high-quality crypto assets, effectively turning the DAO into an on-chain venture fund. The DAO will also help incubate and build projects from the earliest stages. All tokens acquired by the DAO will be owned by the treasury, creating exponential value and unmatched upside for investors.

Magnet DAO is the next stage of the tried and tested reserve currency model. While building a sufficient treasury is important for a protocol, the portfolio management of that treasury is equally as important. We are hyper focused on putting the treasury to use to generate return, including building, incubating, and investing in early-stage projects: opportunities that are typically not available to the average investor. We will also be exploring ways to generate risk-free return on our stablecoins, in order to turn them into productive assets.

Tokenomics

  • name: Magnet DAO
  • symbol: MAG
  • total initial supply: 10,000,000
  • chain: Avalanche (AVAX)

Distribution

Magnet DAO will be selling 20% of the Initial Total Diluted Supply during our Community Offering. 40% will be sold during our Fair Launch in order to bootstrap our treasury. 20% of tokens are reserved for the team (locked and vested), 10% for marketing & partnerships, and 10% for initial liquidity providing.


FAQ

Magnet DAO - Specific FAQ

Are you forking OHM?

Yes, we are forking OHM; however; we are implementing a unique strategy for the treasury. We want our protocol controlled value “PCV” to have more depth than simply representing a floor price / treasury for our token. OHM created something incredible with PCV, and we want to take it to the next level.

What is the Innovation Fund and how will it work?

10% of bonded assets will be directed to an Innovation Fund which will be used to incubate and invest in new, disruptive projects. Magnet DAO will be highly involved, helping ideate projects and helping founders build their projects from the earliest stages. The Innovation Fund will also be used to invest projects that are further along but have yet to launch their token, giving token holders early exposure to projects they otherwise wouldn’t be able to invest in.

Our network effect, community engagement, and synergies will allow us to build and scale projects quickly and efficiently; while providing investors with an unparalleled opportunity to invest in early-stage crypto projects.

What do you think the vetting process of these start up projects will look like?

The core team & DAO leadership will actively perform due diligence on the projects. We have a robust team, including those with early-stage investing experience, marketing, product management, design and engineering. This will all go into vetting the projects that we consider investing in. Additionally, any use of funds we make from the treasury will be voted on by the DAO (token holders). DAO leadership will present their findings to the rest of the DAO and then hold a vote.

What measures are you considering to use for mitigating risk when choosing projects to use the Innovation Fund?

The projects we invest in will likely be later stage, closer to their launch, so those inherently are less risky and we will be able to see community, traction, and product.

For earlier projects that are less proven, we plan on having a very active relationship with those teams, helping them incubate and grow. We even envision ourselves having developers reach out to us telling us that they want to build something, and us providing them with an idea and infrastructure to start. Our team comes from a variety of backgrounds, including crypto venture capital investing, blockchain development, product management, and marketing. Additionally, the DAO will vote and ultimately be the arbiter of any decision made by the Innovation Fund.

What can you do to assure the community that this is not a rugpull?

The code will be open source and we have a number of community members who will be peer auditing it. We will also get multiple, tier 1 third-party audits for our token contract and our smart contracts prior to launching the protocol. All of our contracts and wallets will be multi-sig, with signatories consisting of core team members, third-party advisors (advisors TBD), and DAO leadership. Liquidity providing will also be locked, and team tokens locked and vested - we will post both contracts so the community can view these easily.

What chain are you launching on?

Avalanche.

What are the networks you first had in mind when branching out?

At first, the focus will likely be around AVAX projects. We are extremely bullish on AVAX and its ecosystem and have gotten some incredible support / partnerships, so naturally we will be very active there. Mid/long-term, we definitely plan on getting involved with other chains.

What are you doing to innovate?

We have a lot of ideas for how we can add value to the protocol. A few protocol design ideas we have discussed:

- Implement vesting schedules for bonds, where the user can receive a higher ROI if they opt to vest their tokens over a longer period of time (rather than 5 day standard)

- Implement a diamond hands bonus for staking, to incentivize (🧲,🧲)

- Add “zapping” liquidity to our protocol for ease of bonding LP pairs

- Generate yield on our stablecoins. Given the amount of stablecoins we will have in our treasury, we will certainly be exploring how we can best generate return on these assets

- Develop protocols under the Magnet DAO name. We already have various ideas for projects we want to develop, all of which are synergistic to our primary protocol

Olympus DAO - Related FAQ

Why do we need MagnetDAO in the first place?

Being less volatile than tokens like Bitcoin and Ether, dollar-pegged stablecoins have become an important aspect of the crypto world. Users are comfortable transacting with stablecoins because they know they will have the same purchasing power today as they will tomorrow. This, however, is a fallacy. The US government and the Federal Reserve are in charge of the currency. This means that if the dollar falls in value, so will these stablecoins. MagnetDAO intends to address this by developing $MAG, a free-floating reserve money backed by a portfolio of assets. MagnetDAO expects that by focusing on supply expansion rather than price appreciation, $MAG may serve as a stable currency.

Is MAG a stable coin?

No, $MAG isn't a stablecoin. Rather, $MAG seeks to be a decentralized algorithmic reserve currency. $MAG, like the gold standard, offers its users with free floating value that they can always rely on, thanks to the fractional treasury reserves from which $MAG derives its intrinsic worth.

$MAG is backed, not pegged.

MagnetDAO's protocol managed treasury, protocol owned liquidity (POL), bond mechanism, and staking rewards are all meant to keep supply expansion under control. The protocol makes money from bond sales, and the treasury uses the money to mint $MAG and distribute them to stakers. The protocol can accumulate its own liquidity by using liquidity bonds. Take a look at the entry below for further information on the importance of POL.

What is the deal with (🧲,🧲) and (❗, ❗)?

(🧲,🧲) is the belief that if everyone in Magnet worked together, everyone would benefit the most (from a game theory standpoint). A user can currently take one of three actions:

Staking (+2) Bonding (+1) Selling (-2)

Staking and bonding are thought to be advantageous to the procedure, whereas selling is thought to be harmful. Bonding does not produce a price change, whereas staking and selling do (we consider buying $MAG from the market as a prerequisite of staking, thus causing a price move). If both acts are advantageous, the actor who moves the price receives half of the profit (+1). If both acts are incompatible, the bad actor who moves the price receives half of the benefit (+1), while the good actor who moves the price receives half of the disadvantage (-1). (-1). If both activities are harmful, which suggests that both actors are selling, they will each receive half of the negative consequences (-1).

As a result, given two actors, all possible scenarios for what they could do and their impact on the protocol are displayed here:

It is beneficial for both of us and the protocol (3 + 3 = 6) if we both stake (3, 3).

It's also ideal if one of us stakes and the other bonds, because staking removes $MAG from the market and places it in the protocol, while bonding offers liquidity and DAI for the Treasury (3 + 1 = 4).

When one of us sells, the other who stakes or bonds puts in less effort (1 - 1 = 0).

When both of us sell, it results in the worst possible outcome for both of us and for the protocol (-3 - 3 = -6).

Why is PCV important?

$MAG can only be minted or burned by the protocol because it is in charge of the assets in its treasury. This ensures that the protocol can always back 1 $MAG with a single DAI. Because you can be confident that the protocol will buy $MAG below 1 DAI indefinitely with treasury assets until no one is left to sell, you can easily quantify the risk of your investment. The FED is untrustworthy, but the code is reliable.

More runway for the stakers is ensured as the procedure accumulates more PCV. Because more funds are available in the Treasury, stakers can be confident that the current staking APY will be sustained for a longer time.

Why is POL important?

Because of its bond mechanism, Magnet owns the majority of its liquidity. This has a number of advantages:

Magnet does not need to pay out large farming rewards to entice liquidity providers, often known as renting of liquidity. Magnet assures the market that liquidity will always be available to allow the sale or purchase of goods. Because it is the largest LP (liquidity provider), it receives the majority of the LP fees, which is an additional source of revenue for the Treasury. $MAG can be backed up with any POL. For this aim, the LP tokens are discounted to their risk-free value.

What is the point of buying $MAG when it is trading at a premium?

When you buy and stake $MAG, you are capturing a percentage of the supply (market cap) that is expected to remain stable. This is due to the fact that your staked $MAG balance rises in tandem with the circulating supply. The consequence is that if you acquire $MAG when the market capitalization is low, you will be able to capture a higher portion of the market capitalization. Additionally, $MAG is adding value much further than just its treasury. We are building, incubating, and investing in projects. When you invest in $MAG, you are not just investing in a value-creation mechanism, you are also getting exposure to ground-level development of a multitude of innovative protocols.

What is a rebase?

Rebase is a method that automatically enhances your staked $MAG balance. When the protocol creates fresh $MAG, a big chunk of it goes to the stakers. Because stakers can only see their staked $MAG balance and not their $MAG balance, the protocol uses the rebase technique to boost the staked $MAG balance so that 1 staked $MAG is always redeemable for 1 $MAG.

What is reward yield?

The percentage by which your staked $MAG balance increases on the next epoch is known as reward yield. It's sometimes referred to as the rebase rate. This number can be found on the Magnet staking page.

What is APY?

Annual percentage yield is abbreviated as APY. It considers the effect of compounding interest to calculate the real rate of return on your principal. In the case of MagnetDAO, your staked $MAG symbolizes your principal, while the rebase process adds compound interest every epoch (~8 hours).

One unique feature of APY is that your balance will grow exponentially rather than linearly over time! If you start with a balance of 1 $MAG on day 1, and assume a daily compound interest rate of 2%, your balance will rise to around 1377 after a year. Not too bad!

How is the APY calculated?

The following calculation is used to determine the APY from the reward yield (also known as the rebase rate):

APY = (1 + reward yield)^1095

Because a rebase occurs three times per day, it rises to the power of 1095. Given that there are 365 days in a year, the rebase frequency would be 365 * 3 = 1095.

The following equation determines the reward yield:

Reward Yield = $MAG distributed / $MAG total staked

Using the following calculation, the number of $MAG delivered to the staking contract is determined from the entire supply of $MAG:

$MAG distributed = $MAG total supply x Reward rate

**Please keep in mind that the protocol's reward rate is subject to change.

Why does the price of $MAG become irrelevant in the long-term?

Because of the strength of compounding, your $MAG balance will grow dramatically over time, as seen above. Let's imagine you buy a $MAG for $400 today and the market determines that the intrinsic worth of the $MAG will be $2 in a year. If you assume a daily compound interest rate of 2%, your balance by the end of the year will be roughly 1377 $MAGs, which is worth around $2754. That's a profit of $2354! You should now realize that you are paying a higher price for $MAG now in exchange for a long-term advantage. As a result, you'll need a long time horizon to allow your $MAG balance to increase rapidly and make this an investment worth it.

What will be $MAG's intrinsic value in the future

There is no clear answer, however treasury performance can be used to determine intrinsic value. For instance, if the Treasury can guarantee that every $MAG will be backed by 100 DAI, the intrinsic value of the $MAG will be 100 DAI. The DAO can also make a decision. If the DAO decides to raise the price floor of $MAG, for example, its intrinsic value will rise as well. $MAG will also benefit from the projects it launches, incubates, and invests in - which will all contribute to building its treasury, and fee streams should drive valuation.

How does the protocol manage to maintain the high staking APY?

Assume the protocol aims for a 100,000 percent APY. This would imply a rebase rate of around 0.6328 percent, or a daily growth rate of around 2%. Please see the calculation above to see how the rebase rate is used to determine APY.

To achieve this daily increase, the protocol would need to mint an additional 2000 $MAG if there are 100,000 $MAG staked right now. This can be accomplished if the protocol can generate at least 2000 DAI every day via bond sales. The APY of 100,000 percent cannot be guaranteed if the protocol fails to reach this.

Do I have to unstake and stake $MAG on every epoch to get my rebase rewards?

No. Your staked $MAG balance will auto-compound every epoch once you've staked $MAG with MagnetDAO. Your rebase benefits are represented by that gain in balance.

How do I track my rebase rewards?

You can track your rebase rewards by calculating the increase in your staked $MAG balance.

Record down the Current Index value on the staking page when you first stake your $MAG. Let's call this the Start Index.

After staking for some time, if you want to determine by how much your balance has increased, check the Current Index value again. Let's call this the End Index.

By dividing the End Index by Start Index, you would get the ratio by which your staked $MAG balance has increased.

How and Where to Buy MAG token?

MAG has been listed on a number of crypto exchanges, unlike other main cryptocurrencies, it cannot be directly purchased with fiats money. However, You can still easily buy this coin by first buying Bitcoin, ETH, USDT, BNB from any large exchanges and then transfer to the exchange that offers to trade this coin, in this guide article we will walk you through in detail the steps to buy MAG token

You will have to first buy one of the major cryptocurrencies, usually either Bitcoin (BTC), Ethereum (ETH), Tether (USDT), Binance (BNB)…

We will use Binance Exchange here as it is one of the largest crypto exchanges that accept fiat deposits.

Once you finished the KYC process. You will be asked to add a payment method. Here you can either choose to provide a credit/debit card or use a bank transfer, and buy one of the major cryptocurrencies, usually either Bitcoin (BTC), Ethereum (ETH), Tether (USDT), Binance (BNB)…

☞ SIGN UP ON BINANCE

Step by Step Guide : What is Binance | How to Create an account on Binance (Updated 2022)

Once finished you will then need to make a BTC/ETH/USDT/BNB deposit to the exchange from Binance depending on the available market pairs. After the deposit is confirmed you may then purchase MAG from the exchange.

The top exchange for trading in MAG token is currently: TraderJoe

Top exchanges for token-coin trading. Follow instructions and make unlimited money

BinanceBittrexPoloniexBitfinexHuobiMXCProBITGate.ioCoinbase

🔺DISCLAIMER: The Information in the post isn’t financial advice, is intended FOR GENERAL INFORMATION PURPOSES ONLY. Trading Cryptocurrency is VERY risky. Make sure you understand these risks and that you are responsible for what you do with your money.

🔥 If you’re a beginner. I believe the article below will be useful to you ☞ What You Should Know Before Investing in Cryptocurrency - For Beginner

⭐ ⭐ ⭐The project is of interest to the community ☞ **-----https://geekcash.org-----**⭐ ⭐ ⭐

Find more information MAG token ☞ Website

I hope this post will help you. Don't forget to leave a like, comment and sharing it with others. Thank you!

#bitcoin #crypto 

What is GEEK

Buddha Community

What is Magnet DAO (MAG) | What is MAG token
Royce  Reinger

Royce Reinger

1658068560

WordsCounted: A Ruby Natural Language Processor

WordsCounted

We are all in the gutter, but some of us are looking at the stars.

-- Oscar Wilde

WordsCounted is a Ruby NLP (natural language processor). WordsCounted lets you implement powerful tokensation strategies with a very flexible tokeniser class.

Features

  • Out of the box, get the following data from any string or readable file, or URL:
    • Token count and unique token count
    • Token densities, frequencies, and lengths
    • Char count and average chars per token
    • The longest tokens and their lengths
    • The most frequent tokens and their frequencies.
  • A flexible way to exclude tokens from the tokeniser. You can pass a string, regexp, symbol, lambda, or an array of any combination of those types for powerful tokenisation strategies.
  • Pass your own regexp rules to the tokeniser if you prefer. The default regexp filters special characters but keeps hyphens and apostrophes. It also plays nicely with diacritics (UTF and unicode characters): Bayrūt is treated as ["Bayrūt"] and not ["Bayr", "ū", "t"], for example.
  • Opens and reads files. Pass in a file path or a url instead of a string.

Installation

Add this line to your application's Gemfile:

gem 'words_counted'

And then execute:

$ bundle

Or install it yourself as:

$ gem install words_counted

Usage

Pass in a string or a file path, and an optional filter and/or regexp.

counter = WordsCounted.count(
  "We are all in the gutter, but some of us are looking at the stars."
)

# Using a file
counter = WordsCounted.from_file("path/or/url/to/my/file.txt")

.count and .from_file are convenience methods that take an input, tokenise it, and return an instance of WordsCounted::Counter initialized with the tokens. The WordsCounted::Tokeniser and WordsCounted::Counter classes can be used alone, however.

API

WordsCounted

WordsCounted.count(input, options = {})

Tokenises input and initializes a WordsCounted::Counter object with the resulting tokens.

counter = WordsCounted.count("Hello Beirut!")

Accepts two options: exclude and regexp. See Excluding tokens from the analyser and Passing in a custom regexp respectively.

WordsCounted.from_file(path, options = {})

Reads and tokenises a file, and initializes a WordsCounted::Counter object with the resulting tokens.

counter = WordsCounted.from_file("hello_beirut.txt")

Accepts the same options as .count.

Tokeniser

The tokeniser allows you to tokenise text in a variety of ways. You can pass in your own rules for tokenisation, and apply a powerful filter with any combination of rules as long as they can boil down into a lambda.

Out of the box the tokeniser includes only alpha chars. Hyphenated tokens and tokens with apostrophes are considered a single token.

#tokenise([pattern: TOKEN_REGEXP, exclude: nil])

tokeniser = WordsCounted::Tokeniser.new("Hello Beirut!").tokenise

# With `exclude`
tokeniser = WordsCounted::Tokeniser.new("Hello Beirut!").tokenise(exclude: "hello")

# With `pattern`
tokeniser = WordsCounted::Tokeniser.new("I <3 Beirut!").tokenise(pattern: /[a-z]/i)

See Excluding tokens from the analyser and Passing in a custom regexp for more information.

Counter

The WordsCounted::Counter class allows you to collect various statistics from an array of tokens.

#token_count

Returns the token count of a given string.

counter.token_count #=> 15

#token_frequency

Returns a sorted (unstable) two-dimensional array where each element is a token and its frequency. The array is sorted by frequency in descending order.

counter.token_frequency

[
  ["the", 2],
  ["are", 2],
  ["we",  1],
  # ...
  ["all", 1]
]

#most_frequent_tokens

Returns a hash where each key-value pair is a token and its frequency.

counter.most_frequent_tokens

{ "are" => 2, "the" => 2 }

#token_lengths

Returns a sorted (unstable) two-dimentional array where each element contains a token and its length. The array is sorted by length in descending order.

counter.token_lengths

[
  ["looking", 7],
  ["gutter",  6],
  ["stars",   5],
  # ...
  ["in",      2]
]

#longest_tokens

Returns a hash where each key-value pair is a token and its length.

counter.longest_tokens

{ "looking" => 7 }

#token_density([ precision: 2 ])

Returns a sorted (unstable) two-dimentional array where each element contains a token and its density as a float, rounded to a precision of two. The array is sorted by density in descending order. It accepts a precision argument, which must be a float.

counter.token_density

[
  ["are",     0.13],
  ["the",     0.13],
  ["but",     0.07 ],
  # ...
  ["we",      0.07 ]
]

#char_count

Returns the char count of tokens.

counter.char_count #=> 76

#average_chars_per_token([ precision: 2 ])

Returns the average char count per token rounded to two decimal places. Accepts a precision argument which defaults to two. Precision must be a float.

counter.average_chars_per_token #=> 4

#uniq_token_count

Returns the number of unique tokens.

counter.uniq_token_count #=> 13

Excluding tokens from the tokeniser

You can exclude anything you want from the input by passing the exclude option. The exclude option accepts a variety of filters and is extremely flexible.

  1. A space-delimited string. The filter will normalise the string.
  2. A regular expression.
  3. A lambda.
  4. A symbol that names a predicate method. For example :odd?.
  5. An array of any combination of the above.
tokeniser =
  WordsCounted::Tokeniser.new(
    "Magnificent! That was magnificent, Trevor."
  )

# Using a string
tokeniser.tokenise(exclude: "was magnificent")
# => ["that", "trevor"]

# Using a regular expression
tokeniser.tokenise(exclude: /trevor/)
# => ["magnificent", "that", "was", "magnificent"]

# Using a lambda
tokeniser.tokenise(exclude: ->(t) { t.length < 4 })
# => ["magnificent", "that", "magnificent", "trevor"]

# Using symbol
tokeniser = WordsCounted::Tokeniser.new("Hello! محمد")
tokeniser.tokenise(exclude: :ascii_only?)
# => ["محمد"]

# Using an array
tokeniser = WordsCounted::Tokeniser.new(
  "Hello! اسماءنا هي محمد، كارولينا، سامي، وداني"
)
tokeniser.tokenise(
  exclude: [:ascii_only?, /محمد/, ->(t) { t.length > 6}, "و"]
)
# => ["هي", "سامي", "وداني"]

Passing in a custom regexp

The default regexp accounts for letters, hyphenated tokens, and apostrophes. This means twenty-one is treated as one token. So is Mohamad's.

/[\p{Alpha}\-']+/

You can pass your own criteria as a Ruby regular expression to split your string as desired.

For example, if you wanted to include numbers, you can override the regular expression:

counter = WordsCounted.count("Numbers 1, 2, and 3", pattern: /[\p{Alnum}\-']+/)
counter.tokens
#=> ["numbers", "1", "2", "and", "3"]

Opening and reading files

Use the from_file method to open files. from_file accepts the same options as .count. The file path can be a URL.

counter = WordsCounted.from_file("url/or/path/to/file.text")

Gotchas

A hyphen used in leu of an em or en dash will form part of the token. This affects the tokeniser algorithm.

counter = WordsCounted.count("How do you do?-you are well, I see.")
counter.token_frequency

[
  ["do",   2],
  ["how",  1],
  ["you",  1],
  ["-you", 1], # WTF, mate!
  ["are",  1],
  # ...
]

In this example -you and you are separate tokens. Also, the tokeniser does not include numbers by default. Remember that you can pass your own regular expression if the default behaviour does not fit your needs.

A note on case sensitivity

The program will normalise (downcase) all incoming strings for consistency and filters.

Roadmap

Ability to open URLs

def self.from_url
  # open url and send string here after removing html
end

Are you using WordsCounted to do something interesting? Please tell me about it.

Gem Version 

RubyDoc documentation.

Demo

Visit this website for one example of what you can do with WordsCounted.


Contributors

See contributors.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Author: Abitdodgy
Source Code: https://github.com/abitdodgy/words_counted 
License: MIT license

#ruby #nlp 

Words Counted: A Ruby Natural Language Processor.

WordsCounted

We are all in the gutter, but some of us are looking at the stars.

-- Oscar Wilde

WordsCounted is a Ruby NLP (natural language processor). WordsCounted lets you implement powerful tokensation strategies with a very flexible tokeniser class.

Are you using WordsCounted to do something interesting? Please tell me about it.

 

Demo

Visit this website for one example of what you can do with WordsCounted.

Features

  • Out of the box, get the following data from any string or readable file, or URL:
    • Token count and unique token count
    • Token densities, frequencies, and lengths
    • Char count and average chars per token
    • The longest tokens and their lengths
    • The most frequent tokens and their frequencies.
  • A flexible way to exclude tokens from the tokeniser. You can pass a string, regexp, symbol, lambda, or an array of any combination of those types for powerful tokenisation strategies.
  • Pass your own regexp rules to the tokeniser if you prefer. The default regexp filters special characters but keeps hyphens and apostrophes. It also plays nicely with diacritics (UTF and unicode characters): Bayrūt is treated as ["Bayrūt"] and not ["Bayr", "ū", "t"], for example.
  • Opens and reads files. Pass in a file path or a url instead of a string.

Installation

Add this line to your application's Gemfile:

gem 'words_counted'

And then execute:

$ bundle

Or install it yourself as:

$ gem install words_counted

Usage

Pass in a string or a file path, and an optional filter and/or regexp.

counter = WordsCounted.count(
  "We are all in the gutter, but some of us are looking at the stars."
)

# Using a file
counter = WordsCounted.from_file("path/or/url/to/my/file.txt")

.count and .from_file are convenience methods that take an input, tokenise it, and return an instance of WordsCounted::Counter initialized with the tokens. The WordsCounted::Tokeniser and WordsCounted::Counter classes can be used alone, however.

API

WordsCounted

WordsCounted.count(input, options = {})

Tokenises input and initializes a WordsCounted::Counter object with the resulting tokens.

counter = WordsCounted.count("Hello Beirut!")

Accepts two options: exclude and regexp. See Excluding tokens from the analyser and Passing in a custom regexp respectively.

WordsCounted.from_file(path, options = {})

Reads and tokenises a file, and initializes a WordsCounted::Counter object with the resulting tokens.

counter = WordsCounted.from_file("hello_beirut.txt")

Accepts the same options as .count.

Tokeniser

The tokeniser allows you to tokenise text in a variety of ways. You can pass in your own rules for tokenisation, and apply a powerful filter with any combination of rules as long as they can boil down into a lambda.

Out of the box the tokeniser includes only alpha chars. Hyphenated tokens and tokens with apostrophes are considered a single token.

#tokenise([pattern: TOKEN_REGEXP, exclude: nil])

tokeniser = WordsCounted::Tokeniser.new("Hello Beirut!").tokenise

# With `exclude`
tokeniser = WordsCounted::Tokeniser.new("Hello Beirut!").tokenise(exclude: "hello")

# With `pattern`
tokeniser = WordsCounted::Tokeniser.new("I <3 Beirut!").tokenise(pattern: /[a-z]/i)

See Excluding tokens from the analyser and Passing in a custom regexp for more information.

Counter

The WordsCounted::Counter class allows you to collect various statistics from an array of tokens.

#token_count

Returns the token count of a given string.

counter.token_count #=> 15

#token_frequency

Returns a sorted (unstable) two-dimensional array where each element is a token and its frequency. The array is sorted by frequency in descending order.

counter.token_frequency

[
  ["the", 2],
  ["are", 2],
  ["we",  1],
  # ...
  ["all", 1]
]

#most_frequent_tokens

Returns a hash where each key-value pair is a token and its frequency.

counter.most_frequent_tokens

{ "are" => 2, "the" => 2 }

#token_lengths

Returns a sorted (unstable) two-dimentional array where each element contains a token and its length. The array is sorted by length in descending order.

counter.token_lengths

[
  ["looking", 7],
  ["gutter",  6],
  ["stars",   5],
  # ...
  ["in",      2]
]

#longest_tokens

Returns a hash where each key-value pair is a token and its length.

counter.longest_tokens

{ "looking" => 7 }

#token_density([ precision: 2 ])

Returns a sorted (unstable) two-dimentional array where each element contains a token and its density as a float, rounded to a precision of two. The array is sorted by density in descending order. It accepts a precision argument, which must be a float.

counter.token_density

[
  ["are",     0.13],
  ["the",     0.13],
  ["but",     0.07 ],
  # ...
  ["we",      0.07 ]
]

#char_count

Returns the char count of tokens.

counter.char_count #=> 76

#average_chars_per_token([ precision: 2 ])

Returns the average char count per token rounded to two decimal places. Accepts a precision argument which defaults to two. Precision must be a float.

counter.average_chars_per_token #=> 4

#uniq_token_count

Returns the number of unique tokens.

counter.uniq_token_count #=> 13

Excluding tokens from the tokeniser

You can exclude anything you want from the input by passing the exclude option. The exclude option accepts a variety of filters and is extremely flexible.

  1. A space-delimited string. The filter will normalise the string.
  2. A regular expression.
  3. A lambda.
  4. A symbol that names a predicate method. For example :odd?.
  5. An array of any combination of the above.
tokeniser =
  WordsCounted::Tokeniser.new(
    "Magnificent! That was magnificent, Trevor."
  )

# Using a string
tokeniser.tokenise(exclude: "was magnificent")
# => ["that", "trevor"]

# Using a regular expression
tokeniser.tokenise(exclude: /trevor/)
# => ["magnificent", "that", "was", "magnificent"]

# Using a lambda
tokeniser.tokenise(exclude: ->(t) { t.length < 4 })
# => ["magnificent", "that", "magnificent", "trevor"]

# Using symbol
tokeniser = WordsCounted::Tokeniser.new("Hello! محمد")
tokeniser.tokenise(exclude: :ascii_only?)
# => ["محمد"]

# Using an array
tokeniser = WordsCounted::Tokeniser.new(
  "Hello! اسماءنا هي محمد، كارولينا، سامي، وداني"
)
tokeniser.tokenise(
  exclude: [:ascii_only?, /محمد/, ->(t) { t.length > 6}, "و"]
)
# => ["هي", "سامي", "وداني"]

Passing in a custom regexp

The default regexp accounts for letters, hyphenated tokens, and apostrophes. This means twenty-one is treated as one token. So is Mohamad's.

/[\p{Alpha}\-']+/

You can pass your own criteria as a Ruby regular expression to split your string as desired.

For example, if you wanted to include numbers, you can override the regular expression:

counter = WordsCounted.count("Numbers 1, 2, and 3", pattern: /[\p{Alnum}\-']+/)
counter.tokens
#=> ["numbers", "1", "2", "and", "3"]

Opening and reading files

Use the from_file method to open files. from_file accepts the same options as .count. The file path can be a URL.

counter = WordsCounted.from_file("url/or/path/to/file.text")

Gotchas

A hyphen used in leu of an em or en dash will form part of the token. This affects the tokeniser algorithm.

counter = WordsCounted.count("How do you do?-you are well, I see.")
counter.token_frequency

[
  ["do",   2],
  ["how",  1],
  ["you",  1],
  ["-you", 1], # WTF, mate!
  ["are",  1],
  # ...
]

In this example -you and you are separate tokens. Also, the tokeniser does not include numbers by default. Remember that you can pass your own regular expression if the default behaviour does not fit your needs.

A note on case sensitivity

The program will normalise (downcase) all incoming strings for consistency and filters.

Roadmap

Ability to open URLs

def self.from_url
  # open url and send string here after removing html
end

Contributors

See contributors.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Author: abitdodgy
Source code: https://github.com/abitdodgy/words_counted
License: MIT license

#ruby  #ruby-on-rails 

aaron silva

aaron silva

1622197808

SafeMoon Clone | Create A DeFi Token Like SafeMoon | DeFi token like SafeMoon

SafeMoon is a decentralized finance (DeFi) token. This token consists of RFI tokenomics and auto-liquidity generating protocol. A DeFi token like SafeMoon has reached the mainstream standards under the Binance Smart Chain. Its success and popularity have been immense, thus, making the majority of the business firms adopt this style of cryptocurrency as an alternative.

A DeFi token like SafeMoon is almost similar to the other crypto-token, but the only difference being that it charges a 10% transaction fee from the users who sell their tokens, in which 5% of the fee is distributed to the remaining SafeMoon owners. This feature rewards the owners for holding onto their tokens.

Read More @ https://bit.ly/3oFbJoJ

#create a defi token like safemoon #defi token like safemoon #safemoon token #safemoon token clone #defi token

Crypto Like

Crypto Like

1610505608

What is DAO Maker (DAO) | What is DAO Maker token | What is DAO token

Exploring the DAO Maker Token Economy

Image for post

Yesterday, the first batch of private sale applicants that passed the whitelist received the DAO Maker whitepaper and the DAO Token Economics Papers.

This article explores the token economics paper, as a summary of key aspects. There are three key aspects that add utility to the token:

  • Payments to Stakers
  • Holder Incentives
  • Lending Sponsorship
  • Token Support Activities

Image for post

Utility Set 1: Payments to Stakers

First and foremost, this is not an inflationary staking system. Staking payments are not based on just unlocking more DAO tokens. They are only based on platform fees.

This utility is going to be a key driver in holding and staking DAO tokens. Staking tokens is required to claim payments from a primary reward pool.

The reward pool is built up with payments generated by the platform’s services and products. Many products are already live as we’ve been working on them since 2018. Many more products are in development as we expand the product portfolio to reach our goal of making the DAO Maker platform the center of venture capital opportunity for retail investors across the world.

- Live Fee Streams -

1.1. Fundraising Fees

Most people know us for token launches. Fees are collected from tokens that launch through our platform. We are now in the process of expanding our platform services to equity crowdfunding.

1.2. dTeams Fees

Those who do not know us from token launches, know us from DAOs or Community Hubs powered by our Social Mining technology. A new, more advanced version of Social Mining is now being launched, rebranded as dTeams.

Subscription fees are collected from projects that use the technology. A success fee is claimed based on the transactional volume that takes place on it.

Demand for the product has been great, but we have always kept it permissioned access. We are now shifting towards two variants: (a) a limited _Express _brand, available without permission to any project and (b) a full-featured permissioned _Atlas _brand, available only to a few.

Express will include success fees based on transactional volume on the platform; this is usually in the form of rewards distributed to stakers. Atlas will remain as a combination of subscription fees and success fees.

1.3. Enterprise Service Fees

The DAO Maker platform is a combination of many services, many of which have grown in high demand as legislative pressure grows. Fees are charged when companies use our chain analysis tools to block certain addresses; fees are charged when companies use our KYC/AML service; fees are charged when companies use our node launch system.

The above services and products that are already live. DAO Maker is a cash flow-positive. It has been a self-funded company since late 2018, and is now on path to cross $1.7M in 2020 revenue.

Image for post

- Fee Streams in Development -

1.4. Venture Bond

The Venture Bond is a product we are launching to create nearly zero-risk venture investments. First, startups issue bonds, then retail purchases these bonds, and then the principal money collected from retail generates interest on insured and overcollateralized margin lending.

The generated interest is given to startups, who in return give equity or tokens. At bond maturity, the principal funds are returned to retail. So retail ends up with their initial money back, plus tokens or equity in a startup.

The complete details on how a Venture Bond operates are available in the  whitepaper. Fees will be collected from a portion of funding generated by startups, and from a portion of tokens or equity received by Venture Bond holders.

Image for post

1.5. Venture Bond Exchange

The Venture Bond is an asset class native to the DAO Maker platform. It will need liquidity, and the platform will also facilitate that.

To clarify, a Venture Bond, like any bond, locks funds and returns them after a maturity date (like an expiry date). Only at maturity date, the funds are unlocked from the Venture Bond. It’s likely that some (or many) people may want to exit their position before a Venture Bond’s expiry date. The Venture Bond Exchange facilitates this demand.

There will be trading fees.

The VB Exchange will be open to all for trading Bonds of tokens. Bonds of equity, even though it is crowd equity, will be open to only accredited investors, due to legal requirements.

1.6. Lending Pool for Venture Margin

As just mentioned, the Venture Bond generates funding for startups by using money generated by retail in margin funding activities, insured and over collateralized.

Margin funding isn’t a new concept. There’s almost $800 billion in margin funding in traditional markets. Margin funding isn’t new to crypto either. Exchanges companies like BlockFi and Celsius have been providing this for a while. It has now taken center stage with the DeFi surge.

There is an instant market tap worth billions of dollars.

Margin funding is essentially money used by traders for leverage. To do so, traders have to provide over collateralization, with the standard being 200%. While at the initiation of the Venture Bond we will work with industry providers that are insured and overcollateralized, we will launch our own platform to internalize the margin supply Venture Bond creates; this will be in the form of a lending platform.

Origination fees will be collected, per industry standards, and added to the reward pool. Origination fees are the costs charged upon interest, to borrowers.

- Claiming Payments -

The above revenue streams, whether they are live or in development, will feed a reward pool.

0.5% of the daily pool value will be rewarded per day to stakers. Stakers will have to participate in platform governance, be it creation of proposals or voting in them.

Utility Set 2: Holder Incentives

There’s a large stream of products within the DAO Maker. Some are B2B, some are B2C, and some are B2B2C.

The token will provide the end-user focused products to host incentives for holders. This is in line with boosting platform loyalty. The incentives are focused on the funding products.

2.1. Cashback System

The first form with which loyalty will be rewarded is a cashback system. Stakers will not only receive a portion of platform fees, but they will also receive somewhat of a discount on venture investments they make on the platform.

As mentioned earlier, there are platform fees taken from projects that launch a funding campaign. The fee is not applied to the buyer; it’s applied to the startup.

If a person is staking enough tokens, he/she will get a cashback. The funds for the cashback come from the fees taken from the startups on the platform. It’s similar to a credit card cashback system: when you spend money at a store, the store pays a bit to the card provider, and the card provider gives you some of that money.

Example of possible Cashback system; this can be adjusted in the future.

Image for post

2.2. Allocation Priority

DAO Maker’s DYCO and rSHOs have seen great demand, especially in the small public rounds. The DAO token will give its holders priority in our offerings.

Tokens in the SHO ecosystem will continue to play a role in allocation priority, but the larger portion of allocation will be based on holding/staking status of DAO tokens.

Utility Set 3: Lending Sponsorship

This utility set is complex so it is recommended that the whitepaper is referred for a thorough explanation. The article will offer only a topical insight.

As mentioned earlier, to internalize the margin lending market generated by Venture Bonds, the platform will host its own lending market, tailored for margin lenders. The industry standard is that margin collateral is only accepted in the form of handful of cryptocurrencies. These are the notably high market cap and extremely liquid assets, like Bitcoin and Ethereum.

This means that a significant portion of the market is cut out from access to lending. Given that the DAO token has a very diverse stream of fees creating its support, it creates an opportunity to use the DAO token as a sponsorship token to insure the launch of low-cap tokens as collateral. This will allow them to earn additional fees from the interest being paid to borrow the tokens in sponsored lending pool.

DAO token stakers, who are earning reward pool distribution and enjoying platform incentives like cashbacks, will have the opportunity to voluntarily sponsor lending pools of tokens they like. There’s significant detail on the parameters placed to ensure the operational security of the system.

Utility Set 4: Token Support Activities

There are three primary token support activities. These are designed to boost token distribution, holding, and community involvement.

4.1. Reducing Circulation

Adding all platform fees into the reward pool is not the best approach. Instead, the fees will be split: (a) added to reward pool and (b) used for reducing token circulation.

While the reward pool growth increases staking, reducing circulation boosts token liquidity confidence. It also has a permanent benefit on the token.

4.2. Decentralized Accelerator

The Strong Holder Offering is being turned into the refundable Strong Holder Offering. This framework will be only for projects that have already raised in a private round but now need a public sale mainly to build a community.

The SHO resources will be used to locate a community, but with an added feature.

People will have the right to refund their SHO tokens. However, if tokens are not refunded (meaning token is doing well), a fee will be charged on the non-refunded amount to buy back tokens of that project.

These will then be distributed to the stakers. This was not mentioned above in the reward pool because this distribution has a skew. Those who helped the project that conducted the rSHO will get a bigger amount of tokens. So it creates an incentive system for the community seeded by the rSHO to make help the token do well.

The reward pool described in the beginning of the project distributes payments evenly to all stakers. The Decentralized Accelerator payments are not even: those who helped the rSHO client will get a higher reward. Image for post

4.3. Reward Pool Governance

Platform fees are collected in a combination of stablecoins and tokens (of many different projects).

Fee collection that is being added to the reward pool will be up for votes on a monthly basis. This vote will allow DAO stakers to decide which ecosystem token should the stablecoins buy. This means a portion of platform fees will be used to support projects that join the DAO Maker ecosystem. This creates a good incentive system for projects to join.

The voting system also adds an additional network utility to the DAO stakers, giving them increased responsibility in the ecosystem.

DAO Maker’s Direction

  • Till recently, only projects we accelerate are allowed to use our sale platform
  • Our accelerator is highly exclusive, and only a couple projects qualify per year; the cause is the extreme cost of time and capital needed for proper acceleration

  • Compliance is in high demand, and we have spent years building a platform that offers a fully compliant token sale
  • We want to use the high demand for such a service to offer our community access to otherwise sold-out sales
  • Such projects, though, won’t operate like the ones we accelerate as we have no influence on them; just providing compliance
  • From now on, we will give a warning if a launch is not accelerated by us; such projects would also be mandated to agree to down-side protection (refunds) to the community sale

Full Article starts here.

Over the past three years, we have acquired a reputation of accelerating some of the best projects in the space, some of which have defied the bear market of 2019.

Behind the doors, we’ve actively advanced our ‘launchpad.’ We are based, registered, and licensed in the EU and hence we comply with the most up to date KYC, AML, and data protection compliance requirements.

Image for post

Many projects have and continue to approach us to host compliant public sales for retail. Unlike private rounds for VCs, public rounds for retail require more stringent compliance requirements. Moreso now than ever, since regulatory throwback has brewed to a point where revitable exchanges like BitMEX and OKEx are facing legal hurdles.

Projects seek communities, and community raises need to be done in a manner that covers a wide range of requirements: provable efforts to cut off the US and China, ALMD5-compliant (and soon ALM6) KYC and AML checks, GDPR-compliant data protection, and provable efforts to cut off any sanctioned countries.

We offered and continue to offer Compliance as a Service to projects that are both sold out and have been actively building something that furthers the crypto ecosystem. However, this does not mean that DAO Maker actively endorses or advises these companies.

We will continue to incubate & accelerate projects

Up until we recognized that there is a surging demand (need) for compliant token sales, we only raised for projects that were incubated/accelerated by us. When we incubate a project, we invest in it and then take a very active role in the project. We may even take a board seat to ensure that the actions we feel are going to drive success are implemented.

Our incubation process involves us working on the project’s product to ensure it has a strong market fit and a greater integration of the project’s token. If the underlying technology allows, we work to strategize additional products that could be added to the development, to ensure a diversified product portfolio for the company. We may even work to improve the UX and UI design, alongside game theory in project economics and business development. This is resource, labor, and capital intensive and that is why we only incubate a few projects per year.

We will take a different approach to non-accelerated sales.

We are now fulfilling a rising industry necessity: safe and compliant token sale offerings, even for projects that are not incubated by us.

We will clarify from now on whether a token sale launched on our platform is just a project seeking a compliant token sale, or that it is a sale of a development fully incubated by DAO Maker. Users should only invest in these projects if they have had a pre-established interest in the specific companies as we have little to do with them, outside of the compliance of the token sale.

For projects that want to grow their community using the ecosystem, in a compliant manner, DAO Maker hosts safe Token Sales that will offer participants partial or full refunds if the token goes below ICO price in the first 2 months. The first one being PlotX, which offers the participants of the DAO Maker-operated Community Offering a 50% refund if they do not participate in the app to claim the second batch of tokens.

TOKEN SALE: 18 JAN – 18 JAN

Ticker: DAO

Token type: ERC20

ICO Token Price: 1 DAO = 0.1 USD

Fundraising Goal: $300,000

Total Tokens: 312,000,000

Available for Token Sale: 25%

Please add our communication channel to keep you up to date! Looking for more information…

WebsiteWhitepaperSocial ChannelMessage BoardDocumentation

Top exchanges for token-coin trading. Follow instructions and make unlimited money

BinanceBittrexPoloniexBitfinexHuobi

What You Should Know Before Investing in Cryptocurrency - For Beginner

⭐ ⭐ ⭐ Join to Get free ‘GEEK coin’ (GEEKCASH coin)! ☞ CLICK HERE⭐ ⭐ ⭐
(There is no limit to the amount of credit you can earn through referrals)

Thank for visiting and reading this article! I’m highly appreciate your actions! Please share if you liked it!

#blockchain #bitcoin #dao maker #dao

Henry Joseph

Henry Joseph

1642848610

Provide Growth Solutions To Blockchain Projects With A DAO Maker Clone

Blockchain technology has been creating a buzz in the world with emerging cryptocurrency projects and NFTs. Entrepreneurs are trying hard to get into the crypto world. Offering a risk-free, trustable and highly secured launchpad has always been the goal of these tycoons. If you are one of them, here is an exclusive solution for you to be on top of the list. DAO maker clone is all you need, which is an exclusive clone of an IDO launchpad. 

DAO Maker is a growth solution provider or a launchpad that stands behind many successful crypto projects in the market. You can know more about the DAO Maker clone, its features, and its significance if you read further.


What is a DAO Maker Clone?

Before jumping into DAO Maker clone, let us see what a DAO Maker is and how it works. A DAO Maker is a crypto project launchpad that helps with early token sales attracting potential investors. This platform works on its own native tokens. The DAO Maker token holders have the privilege to participate in the community governance of the platform. Not only this, but they also contribute to the increase of liquidity to a great extent. The DAO Maker has a flagship platform called DAO Pad, which is responsible for token sales in the early stage of the product.

A DAO Maker clone is a pure Whitelabel solution that has its own sets of rich features. It is a ready-made solution that has been pre-designed and tested for bugs before handing it over to the client. It is a ready-to-launch platform and it can be customized with the required features in the near future. 

 

Working of DAO Maker clone

DAO Maker is a secured and fair platform that allows both retailers and small-scale investors to participate equally in token sales. There are three types of token offerings and refundable token sales methods. They are

  • Strong holder offering
  • Dynamic coin offering
  • Seed sales.

The platform works purely based on the native DAO tokens. Each user or investor must stake these tokens and there is a minimum limit of staking the tokens. This will help the investors to participate in the launches. For every DAO Token staked, the users will receive a DAO Power. When there is more DAO Power, the chance of winning for that user will be high. The minimum limit of DAO token stake is 500 DAO. the users will be categorized into 5 tranches depending on the DAO Power they hold. They are
 

  • Tranche 1- 500 to 999 DAO Power
  • Tranche 2- 1000 to 1999 DAO Power
  • Tranche 3- 2000 to 3999 DAO Power
  • Tranche 4- 4000 to 9999 DAO Power
  • Tranche 5- 10000 and more DAO Power

As mentioned above, if the level of Tranches increases, the probability of winning an allocation also increases. If a user is allocated a slot, the funds for the allocation will be taken from USD Coin or USDC Balance. The DAO Power allocated to the user will be locked for at least 10 days and it will be reset automatically. 

DAO Maker is best known for its flagship platform, DAO Pad. DAO maker is considered as the best token sales platform when compared to the competitors. That is why the DAO Maker clone is considered the best option for emerging entrepreneurs in the crypto market.

 

The rich features of the DAO Maker clone

The following are the rich features available in the DAO Maker clone. Since it is a Whitelabel solution, it can be customized according to future requirements.

  • Instant Token Allocation

DAO maker ensures that each winner of the slot gets a relatively large number of allocations. Once the project is launched, the platform allows the users to buy the tokens immediately. 

  • List of stacking modules

The main feature of the platform is that it can list a variety of staking modules for investors. This helps the investors to participate in IDOs of their choice.

  • Safe wallet integration

The first thing any investor will look for in a platform is safety. DAO Maker clone offers secured wallet integration for the users. This makes lending and borrowing easier for the users on the Ethereum blockchain

  • Airdrop feature

This feature allows the swapping of tokens. It also allows the burning of previous tokens. This is done with the help of a portal through smart contracts.

  • Early-stage investment made simple

DAO Maker clone makes early-stage investment possible and simple by providing DAO Tokens. DAO Tokens are the single entry ticket to win a slot. 
 

Wrap up

DAO Maker clone supports the crypto projects built on Ethereum and BSC blockchain. It is also possible to build a platform that works for projects on all other platforms. DAO Marker clone is a perfect whitelable solution that can be customized according to your needs. You can add new features or change the existing features in accordance with future needs. Owning a launchpad platform like DAO Maker is made simple with these Whitelabel solution scripts. If you are waiting for a spark to kickstart your blockchain journey, dive into it with an exclusive DAO Maker clone. 

#DAO_LAunchPad #DAO #DAO_Maker_Clone #DAOMaker #Whitelabel #Crypto_project #DAOpad #readymade #cryptocurrency