@saffron-finance/dashi
TypeScript icon, indicating that this package has built-in type declarations

0.2.1-alpha.2 • Public • Published

Dashi - A library to simulate Saffron Fixed Income Vaults

We created Dashi, a library written in Typescript, to facilitate the calculations of the outcome from a Saffron Fixed Income Vault (SFIV) in different scenarios. The library has didactic purposes but it can be used to incorporate the SFIV into more complex market simulations.

The Saffron Fixed Income Vault is a factory contract written in Solidity that implements a decentralized version of a reverse zero coupon swap.

Disclaimer

This is an experimental library, use it at your own risk. Please let us know of any bugs.

Installation

Dashi is an NPM package and to install it to a node project we run:

npm install @saffron-finance/dashi

Usage example (ToDo)

Previous versions

Usage example (version 0.1.32 and below)

Conclusion

The Dashi library on NPM makes it easy to simulate scenarios of the Saffron Fixed Income Vault contracts. It can be used to test market strategies combined with other instruments or to simply calculate the outcome of a contract given a specific set of market conditions. These market conditions can be generated by a function that simulates a random variable with particular characteristics and takes specific values to test hypotheses or historical market data to simulate what would have been the performance of the instrument if existed at a point in the past.

Readme

Keywords

none

Package Sidebar

Install

npm i @saffron-finance/dashi

Weekly Downloads

3

Version

0.2.1-alpha.2

License

ISC

Unpacked Size

516 kB

Total Files

97

Last publish

Collaborators

  • rx3a97