Skip to content

Commit

Permalink
Deploy ynBNB
Browse files Browse the repository at this point in the history
  • Loading branch information
xhad committed Sep 14, 2024
1 parent bd467b0 commit 7246a02
Show file tree
Hide file tree
Showing 4 changed files with 769 additions and 109 deletions.
24 changes: 18 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,22 @@ See the makefile for deployment scripts. Deploy a factory first, then use it to
### BSC Mainnet
| Name | Address |
|-----------------------|----------------------------------------------|
| slisBNB | [0xB0b84D294e0C75A6abe60171b70edEb2EFd14A1B](https://bscscan.com/address/0xB0b84D294e0C75A6abe60171b70edEb2EFd14A1B) |
| VaultFactory | [0xf6B9b69B7e13D37D3846698bA2625e404C7586aF](https://testnet.bscscan.com/address/0xf6B9b69B7e13D37D3846698bA2625e404C7586aF) |
| SingleVault | [0x40020796C11750975aD8758a1F2ab725f6b72Db2](https://testnet.bscscan.com/address/0x40020796C11750975aD8758a1F2ab725f6b72Db2) |
| ynBNB | [](https://testnet.bscscan.com/address/) |
| ynBNB | [0x304B5845b9114182ECb4495Be4C91a273b74B509](https://testnet.bscscan.com/address/0x304B5845b9114182ECb4495Be4C91a273b74B509) |
| slisBNB | [0xB0b84D294e0C75A6abe60171b70edEb2EFd14A1B](https://bscscan.com/address/0xB0b84D294e0C75A6abe60171b70edEb2EFd14A1B) |
| Vault Factory | [0x8F74AC4a934Db365720fa4A0e7aE62FF2457DE41](https://bscscan.com/address/0x8f74ac4a934db365720fa4a0e7ae62ff2457de41) |
| VaultFactory Impl | [0x53dd506c5fC655634F2ab7ca0c1801a08e0Cb607](https://bscscan.com/address/0x53dd506c5fc655634f2ab7ca0c1801a08e0cb607) |
| SingleVault Imp | [0x80815ee920Bd9d856562633C36D3eB0E43cb15e2](https://bscscan.com/address/0x80815ee920bd9d856562633c36d3eb0e43cb15e2) |
| Timelock | [0xd53044093F757E8a56fED3CCFD0AF5Ad67AeaD4a](https://bscscan.com/address/0xd53044093f757e8a56fed3ccfd0af5ad67aead4a) |
| ProxyAdmin | [0x341932c52C431427c2d759f344a0C5085B0F4576](https://bscscan.com/address/0x341932c52c431427c2d759f344a0c5085b0f4576) |
| Security Council | [0x721688652DEa9Cabec70BD99411EAEAB9485d436](https://bscscan.com/address/0x721688652DEa9Cabec70BD99411EAEAB9485d436) |

### BSC Testnet
| Name | Address |
|-----------------------|----------------------------------------------|
| ynBNB | [0x7e87787C22117374Fad2E3E2E8C6159f0875F92e](https://testnet.bscscan.com/address/0x7e87787c22117374fad2e3e2e8c6159f0875f92e) |
| slisBNB | [0x80815ee920Bd9d856562633C36D3eB0E43cb15e2](https://testnet.bscscan.com/address/0x80815ee920bd9d856562633c36d3eb0e43cb15e2) |
| VaultFactory | [0x964C6d4050e052D627b8234CAD9CdF0981E40EB3](https://testnet.bscscan.com/address/0x964C6d4050e052D627b8234CAD9CdF0981E40EB3) |
| SingleVault | [0xa2aE2b28c578Fbd7C18B554E7aA388Bf6694a42c](https://testnet.bscscan.com/address/0xa2aE2b28c578Fbd7C18B554E7aA388Bf6694a42c) |
| ynBNB | [0x7e87787C22117374Fad2E3E2E8C6159f0875F92e](https://testnet.bscscan.com/address/0x7e87787c22117374fad2e3e2e8c6159f0875f92e) |


# Project Deployment Commands
Expand Down Expand Up @@ -104,4 +108,12 @@ make single-vault

There's a loss incurred by the user that's roughly less than `Max(amount, rewards) / 1e18` when he withdraws the exact same shares he received when compared to what he deposited.

I believe this is because of that decimal offset in OZ 46426Upgradeable to prevent donation attacks. The loss maxes out at 10000 wei for 10000 ether amounts so it's small.
I believe this is because of that decimal offset in OZ 46426Upgradeable to prevent donation attacks. The loss maxes out at 10000 wei for 10000 ether amounts so it's small.
=======
1. Deposit Withdraw Scenario
There's a loss incurred by the user that's roughly less than `Max(amount, rewards) / 1e18` when he withdraws the exact same shares he received when compared to what he deposited.

I believe this is because of that decimal offset in OZ 46426Upgradeable to prevent donation attacks. The loss maxes out at 10000 wei for 10000 ether amounts so it's small.

2. Initial Version of the Vault is trusted by the YnBscSecurityCouncil:
https://app.safe.global/home?safe=bnb:0x721688652DEa9Cabec70BD99411EAEAB9485d436
Loading

0 comments on commit 7246a02

Please sign in to comment.