# chrisjstephens/CED0104_Blockchain_FinalProject forked from LJordan007/CED0104_Blockchain_FinalProject

This repo is the final project for the Blockchain course CED0104, which is an Interest Rate Swap see readme for a more detailed description
Switch branches/tags
Nothing to show
This branch is 6 commits behind LJordan007:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
 Failed to load latest commit information. InterestRateSwapOne.sol InterestRateSwapTwo.sol README.md

# CED0104_Blockchain_FinalProject

This repo is the final project for the Blockchain course CED0104, which is an Interest Rate Swap contract

Authors of the Final Capstone Project: Chris Stephens and Lawrence Jordan

There are two smart contracts that were created for this capstone project

## Smart Contract - InterestRateSwapOne.sol

This is just a simple Interest Rate Contract, that takes a fixed rate, variable rate, libor rate and two address from the two contract participants and calculates what the payout is.

## The functions that can be used with in this contract:

• #### getContractDetails: This displays the contract details of the swap of what were the aggred upon values of the contract

Values to be added in Create function below in Solidty to run this contract: Fixed Rate 4% is 400, Variable Rate 0.25% is 25, Libor Rate 5% is 500 and nominalge market value is 1000000

"0xca35b7d915458ef540ade6068dfe2f44e8fa733c", "0x14723a09acff6d2a60dcdf7aa4aff308fddc160c", "400", "25", "500", "1000000"

## Smart Contract - InterestRateSwapTwo.sol

This contract takes a starting market value and calculates two interest rates againinst it, one that is fixed and the other that is a variable rate plus the libor rate. The contract expires once the total payouts are more than the inital starting market value of the contract.

## The functions that can be used with in this contract:

• #### balancedOwed: this is used to enter in either address of the contract participate to see the balance to date on what they have earned

Values to be added in Create function below in Solidty to run this contract: Fixed Rate 4% is 400, Variable Rate 0.25% is 25, Libor Rate 5% is 500 and nominalge market value is 1000000

"0xca35b7d915458ef540ade6068dfe2f44e8fa733c", "0x14723a09acff6d2a60dcdf7aa4aff308fddc160c", "400", "25", "500", "1000000"

#### Description of Interest Rate Swap

"What is an 'Interest Rate Swap' An interest rate swap is an agreement between two counterparties in which one stream of future interest payments is exchanged for another based on a specified principal amount. Interest rate swaps usually involve the exchange of a fixed interest rate for a floating rate, or vice versa, to reduce or increase exposure to fluctuations in interest rates or to obtain a marginally lower interest rate than would have been possible without the swap."

https://ipfs.io/ipfs/QmXoypizjW3WknFiJnKLwHCnL72vedxjQkDDP1mXWo6uco/wiki/Interest_rate_swap.html